home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1999 March / EnigmA AMIGA RUN 35 (1999)(G.R. Edizioni)(IT)[!][issue 1999-03].iso / earcd / misc / pdflib / pdfpython_wrap.c < prev    next >
C/C++ Source or Header  |  1999-01-01  |  162KB  |  4,921 lines

  1. /*
  2.  * FILE : pdfpython_wrap.c
  3.  * 
  4.  * This file was automatically generated by :
  5.  * Simplified Wrapper and Interface Generator (SWIG)
  6.  * Version 1.1 (Patch 5)
  7.  * 
  8.  * Portions Copyright (c) 1995-1998
  9.  * The University of Utah and The Regents of the University of California.
  10.  * Permission is granted to distribute this file in any manner provided
  11.  * this notice remains intact.
  12.  * 
  13.  * Do not make changes to this file--changes will be lost!
  14.  *
  15.  */
  16.  
  17.  
  18. #define SWIGCODE
  19. /* Implementation : PYTHON */
  20.  
  21. #define SWIGPYTHON
  22. #include <string.h>
  23. #include <stdlib.h>
  24. /***********************************************************************
  25.  * $Header:$
  26.  * swig_lib/python/python.cfg
  27.  *
  28.  * This file contains coded needed to add variable linking to the
  29.  * Python interpreter.   C variables are added as a new kind of Python
  30.  * datatype.
  31.  *
  32.  * Also contains supporting code for building python under Windows
  33.  * and things like that.
  34.  *
  35.  * $Log:$
  36.  ************************************************************************/
  37.  
  38. #ifdef __cplusplus
  39. extern "C" {
  40. #endif
  41. #include "Python.h"
  42. #ifdef __cplusplus
  43. }
  44. #endif
  45.  
  46. /* Definitions for Windows/Unix exporting */
  47. #if defined(__WIN32__)
  48. #   if defined(_MSC_VER)
  49. #    define SWIGEXPORT(a,b) __declspec(dllexport) a b
  50. #   else
  51. #    if defined(__BORLANDC__)
  52. #        define SWIGEXPORT(a,b) a _export b
  53. #    else
  54. #        define SWIGEXPORT(a,b) a b
  55. #    endif
  56. #   endif
  57. #else
  58. #   define SWIGEXPORT(a,b) a b
  59. #endif
  60.  
  61. #ifdef SWIG_GLOBAL
  62. #ifdef __cplusplus
  63. #define SWIGSTATIC extern "C"
  64. #else
  65. #define SWIGSTATIC
  66. #endif
  67. #endif
  68.  
  69. #ifndef SWIGSTATIC
  70. #define SWIGSTATIC static
  71. #endif
  72.  
  73. typedef struct {
  74.   char  *name;
  75.   PyObject *(*get_attr)(void);
  76.   int (*set_attr)(PyObject *);
  77. } swig_globalvar;
  78.  
  79. typedef struct swig_varlinkobject {
  80.   PyObject_HEAD
  81.   swig_globalvar **vars;
  82.   int      nvars;
  83.   int      maxvars;
  84. } swig_varlinkobject;
  85.  
  86. /* ----------------------------------------------------------------------
  87.    swig_varlink_repr()
  88.  
  89.    Function for python repr method
  90.    ---------------------------------------------------------------------- */
  91.  
  92. static PyObject *
  93. swig_varlink_repr(swig_varlinkobject *v)
  94. {
  95.   v = v;
  96.   return PyString_FromString("<Global variables>");
  97. }
  98.  
  99. /* ---------------------------------------------------------------------
  100.    swig_varlink_print()
  101.  
  102.    Print out all of the global variable names
  103.    --------------------------------------------------------------------- */
  104.  
  105. static int
  106. swig_varlink_print(swig_varlinkobject *v, FILE *fp, int flags)
  107. {
  108.  
  109.   int i = 0;
  110.   flags = flags;
  111.   fprintf(fp,"Global variables { ");
  112.   while (v->vars[i]) {
  113.     fprintf(fp,"%s", v->vars[i]->name);
  114.     i++;
  115.     if (v->vars[i]) fprintf(fp,", ");
  116.   }
  117.   fprintf(fp," }\n");
  118.   return 0;
  119. }
  120.  
  121. /* --------------------------------------------------------------------
  122.    swig_varlink_getattr
  123.  
  124.    This function gets the value of a variable and returns it as a
  125.    PyObject.   In our case, we'll be looking at the datatype and
  126.    converting into a number or string
  127.    -------------------------------------------------------------------- */
  128.  
  129. static PyObject *
  130. swig_varlink_getattr(swig_varlinkobject *v, char *n)
  131. {
  132.   int i = 0;
  133.   char temp[128];
  134.  
  135.   while (v->vars[i]) {
  136.     if (strcmp(v->vars[i]->name,n) == 0) {
  137.       return (*v->vars[i]->get_attr)();
  138.     }
  139.     i++;
  140.   }
  141.   sprintf(temp,"C global variable %s not found.", n);
  142.   PyErr_SetString(PyExc_NameError,temp);
  143.   return NULL;
  144. }
  145.  
  146. /* -------------------------------------------------------------------
  147.    swig_varlink_setattr()
  148.  
  149.    This function sets the value of a variable.
  150.    ------------------------------------------------------------------- */
  151.  
  152. static int
  153. swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p)
  154. {
  155.   char temp[128];
  156.   int i = 0;
  157.   while (v->vars[i]) {
  158.     if (strcmp(v->vars[i]->name,n) == 0) {
  159.       return (*v->vars[i]->set_attr)(p);
  160.     }
  161.     i++;
  162.   }
  163.   sprintf(temp,"C global variable %s not found.", n);
  164.   PyErr_SetString(PyExc_NameError,temp);
  165.   return 1;
  166. }
  167.  
  168. statichere PyTypeObject varlinktype = {
  169. /*  PyObject_HEAD_INIT(&PyType_Type)  Note : This doesn't work on some machines */
  170.   PyObject_HEAD_INIT(0)              
  171.   0,
  172.   "varlink",                          /* Type name    */
  173.   sizeof(swig_varlinkobject),         /* Basic size   */
  174.   0,                                  /* Itemsize     */
  175.   0,                                  /* Deallocator  */ 
  176.   (printfunc) swig_varlink_print,     /* Print        */
  177.   (getattrfunc) swig_varlink_getattr, /* get attr     */
  178.   (setattrfunc) swig_varlink_setattr, /* Set attr     */
  179.   0,                                  /* tp_compare   */
  180.   (reprfunc) swig_varlink_repr,       /* tp_repr      */    
  181.   0,                                  /* tp_as_number */
  182.   0,                                  /* tp_as_mapping*/
  183.   0,                                  /* tp_hash      */
  184. };
  185.  
  186. /* Create a variable linking object for use later */
  187.  
  188. SWIGSTATIC PyObject *
  189. SWIG_newvarlink(void)
  190. {
  191.   swig_varlinkobject *result = 0;
  192.   result = PyMem_NEW(swig_varlinkobject,1);
  193.   varlinktype.ob_type = &PyType_Type;    /* Patch varlinktype into a PyType */
  194.   result->ob_type = &varlinktype;
  195.   /*  _Py_NewReference(result);  Does not seem to be necessary */
  196.   result->nvars = 0;
  197.   result->maxvars = 64;
  198.   result->vars = (swig_globalvar **) malloc(64*sizeof(swig_globalvar *));
  199.   result->vars[0] = 0;
  200.   result->ob_refcnt = 0;
  201.   Py_XINCREF((PyObject *) result);
  202.   return ((PyObject*) result);
  203. }
  204.  
  205. SWIGSTATIC void
  206. SWIG_addvarlink(PyObject *p, char *name,
  207.        PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p))
  208. {
  209.   swig_varlinkobject *v;
  210.   v= (swig_varlinkobject *) p;
  211.     
  212.   if (v->nvars >= v->maxvars -1) {
  213.     v->maxvars = 2*v->maxvars;
  214.     v->vars = (swig_globalvar **) realloc(v->vars,v->maxvars*sizeof(swig_globalvar *));
  215.     if (v->vars == NULL) {
  216.       fprintf(stderr,"SWIG : Fatal error in initializing Python module.\n");
  217.       exit(1);
  218.     }
  219.   }
  220.   v->vars[v->nvars] = (swig_globalvar *) malloc(sizeof(swig_globalvar));
  221.   v->vars[v->nvars]->name = (char *) malloc(strlen(name)+1);
  222.   strcpy(v->vars[v->nvars]->name,name);
  223.   v->vars[v->nvars]->get_attr = get_attr;
  224.   v->vars[v->nvars]->set_attr = set_attr;
  225.   v->nvars++;
  226.   v->vars[v->nvars] = 0;
  227. }
  228.  
  229.  
  230.  
  231. /*****************************************************************************
  232.  * $Header:$
  233.  *
  234.  * swigptr.swg
  235.  *
  236.  * This file contains supporting code for the SWIG run-time type checking
  237.  * mechanism.  The following functions are available :
  238.  *
  239.  * SWIG_RegisterMapping(char *origtype, char *newtype, void *(*cast)(void *));
  240.  *
  241.  *      Registers a new type-mapping with the type-checker.  origtype is the
  242.  *      original datatype and newtype is an equivalent type.  cast is optional
  243.  *      pointer to a function to cast pointer values between types (this
  244.  *      is typically used to cast pointers from derived classes to base classes in C++)
  245.  *      
  246.  * SWIG_MakePtr(char *buffer, void *ptr, char *typestring);
  247.  *     
  248.  *      Makes a pointer string from a pointer and typestring.  The result is returned
  249.  *      in buffer which is assumed to hold enough space for the result.
  250.  *
  251.  * char * SWIG_GetPtr(char *buffer, void **ptr, char *type)
  252.  *
  253.  *      Gets a pointer value from a string.  If there is a type-mismatch, returns
  254.  *      a character string to the received type.  On success, returns NULL.
  255.  *
  256.  *
  257.  * You can remap these functions by making a file called "swigptr.swg" in
  258.  * your the same directory as the interface file you are wrapping.
  259.  *
  260.  * These functions are normally declared static, but this file can be
  261.  * can be used in a multi-module environment by redefining the symbol
  262.  * SWIGSTATIC.
  263.  *****************************************************************************/
  264.  
  265. #include <stdlib.h>
  266.  
  267. #ifdef SWIG_GLOBAL
  268. #ifdef __cplusplus
  269. #define SWIGSTATIC extern "C"
  270. #else
  271. #define SWIGSTATIC
  272. #endif
  273. #endif
  274.  
  275. #ifndef SWIGSTATIC
  276. #define SWIGSTATIC static
  277. #endif
  278.  
  279.  
  280. /* SWIG pointer structure */
  281.  
  282. typedef struct SwigPtrType {
  283.   char               *name;               /* Datatype name                  */
  284.   int                 len;                /* Length (used for optimization) */
  285.   void               *(*cast)(void *);    /* Pointer casting function       */
  286.   struct SwigPtrType *next;               /* Linked list pointer            */
  287. } SwigPtrType;
  288.  
  289. /* Pointer cache structure */
  290.  
  291. typedef struct {
  292.   int                 stat;               /* Status (valid) bit             */
  293.   SwigPtrType        *tp;                 /* Pointer to type structure      */
  294.   char                name[256];          /* Given datatype name            */
  295.   char                mapped[256];        /* Equivalent name                */
  296. } SwigCacheType;
  297.  
  298. /* Some variables  */
  299.  
  300. static int SwigPtrMax  = 64;           /* Max entries that can be currently held */
  301.                                        /* This value may be adjusted dynamically */
  302. static int SwigPtrN    = 0;            /* Current number of entries              */
  303. static int SwigPtrSort = 0;            /* Status flag indicating sort            */
  304. static int SwigStart[256];             /* Starting positions of types            */
  305.  
  306. /* Pointer table */
  307. static SwigPtrType *SwigPtrTable = 0;  /* Table containing pointer equivalences  */
  308.  
  309. /* Cached values */
  310.  
  311. #define SWIG_CACHESIZE  8
  312. #define SWIG_CACHEMASK  0x7
  313. static SwigCacheType SwigCache[SWIG_CACHESIZE];  
  314. static int SwigCacheIndex = 0;
  315. static int SwigLastCache = 0;
  316.  
  317. /* Sort comparison function */
  318. static int swigsort(const void *data1, const void *data2) {
  319.     SwigPtrType *d1 = (SwigPtrType *) data1;
  320.     SwigPtrType *d2 = (SwigPtrType *) data2;
  321.     return strcmp(d1->name,d2->name);
  322. }
  323.  
  324. /* Binary Search function */
  325. static int swigcmp(const void *key, const void *data) {
  326.   char *k = (char *) key;
  327.   SwigPtrType *d = (SwigPtrType *) data;
  328.   return strncmp(k,d->name,d->len);
  329. }
  330.  
  331. /* Register a new datatype with the type-checker */
  332.  
  333. SWIGSTATIC 
  334. void SWIG_RegisterMapping(char *origtype, char *newtype, void *(*cast)(void *)) {
  335.  
  336.   int i;
  337.   SwigPtrType *t = 0,*t1;
  338.  
  339.   /* Allocate the pointer table if necessary */
  340.  
  341.   if (!SwigPtrTable) {     
  342.     SwigPtrTable = (SwigPtrType *) malloc(SwigPtrMax*sizeof(SwigPtrType));
  343.     SwigPtrN = 0;
  344.   }
  345.   /* Grow the table */
  346.   if (SwigPtrN >= SwigPtrMax) {
  347.     SwigPtrMax = 2*SwigPtrMax;
  348.     SwigPtrTable = (SwigPtrType *) realloc((char *) SwigPtrTable,SwigPtrMax*sizeof(SwigPtrType));
  349.   }
  350.   for (i = 0; i < SwigPtrN; i++)
  351.     if (strcmp(SwigPtrTable[i].name,origtype) == 0) {
  352.       t = &SwigPtrTable[i];
  353.       break;
  354.     }
  355.   if (!t) {
  356.     t = &SwigPtrTable[SwigPtrN];
  357.     t->name = origtype;
  358.     t->len = strlen(t->name);
  359.     t->cast = 0;
  360.     t->next = 0;
  361.     SwigPtrN++;
  362.   }
  363.  
  364.   /* Check for existing entry */
  365.  
  366.   while (t->next) {
  367.     if ((strcmp(t->name,newtype) == 0)) {
  368.       if (cast) t->cast = cast;
  369.       return;
  370.     }
  371.     t = t->next;
  372.   }
  373.   
  374.   /* Now place entry (in sorted order) */
  375.  
  376.   t1 = (SwigPtrType *) malloc(sizeof(SwigPtrType));
  377.   t1->name = newtype;
  378.   t1->len = strlen(t1->name);
  379.   t1->cast = cast;
  380.   t1->next = 0;            
  381.   t->next = t1;           
  382.   SwigPtrSort = 0;
  383. }
  384.  
  385. /* Make a pointer value string */
  386.  
  387. SWIGSTATIC 
  388. void SWIG_MakePtr(char *_c, const void *_ptr, char *type) {
  389.   static char _hex[16] =
  390.   {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
  391.    'a', 'b', 'c', 'd', 'e', 'f'};
  392.   unsigned long _p, _s;
  393.   char _result[20], *_r;    /* Note : a 64-bit hex number = 16 digits */
  394.   _r = _result;
  395.   _p = (unsigned long) _ptr;
  396.   if (_p > 0) {
  397.     while (_p > 0) {
  398.       _s = _p & 0xf;
  399.       *(_r++) = _hex[_s];
  400.       _p = _p >> 4;
  401.     }
  402.     *_r = '_';
  403.     while (_r >= _result)
  404.       *(_c++) = *(_r--);
  405.   } else {
  406.     strcpy (_c, "NULL");
  407.   }
  408.   if (_ptr)
  409.     strcpy (_c, type);
  410. }
  411.  
  412. /* Define for backwards compatibility */
  413.  
  414. #define _swig_make_hex   SWIG_MakePtr 
  415.  
  416. /* Function for getting a pointer value */
  417.  
  418. SWIGSTATIC 
  419. char *SWIG_GetPtr(char *_c, void **ptr, char *_t)
  420. {
  421.   unsigned long _p;
  422.   char temp_type[256];
  423.   char *name;
  424.   int  i, len;
  425.   SwigPtrType *sp,*tp;
  426.   SwigCacheType *cache;
  427.   int  start, end;
  428.   _p = 0;
  429.  
  430.   /* Pointer values must start with leading underscore */
  431.   if (*_c == '_') {
  432.       _c++;
  433.       /* Extract hex value from pointer */
  434.       while (*_c) {
  435.       if ((*_c >= '0') && (*_c <= '9'))
  436.         _p = (_p << 4) + (*_c - '0');
  437.       else if ((*_c >= 'a') && (*_c <= 'f'))
  438.         _p = (_p << 4) + ((*_c - 'a') + 10);
  439.       else
  440.         break;
  441.       _c++;
  442.       }
  443.  
  444.       if (_t) {
  445.     if (strcmp(_t,_c)) { 
  446.       if (!SwigPtrSort) {
  447.         qsort((void *) SwigPtrTable, SwigPtrN, sizeof(SwigPtrType), swigsort); 
  448.         for (i = 0; i < 256; i++) {
  449.           SwigStart[i] = SwigPtrN;
  450.         }
  451.         for (i = SwigPtrN-1; i >= 0; i--) {
  452.           SwigStart[(int) (SwigPtrTable[i].name[1])] = i;
  453.         }
  454.         for (i = 255; i >= 1; i--) {
  455.           if (SwigStart[i-1] > SwigStart[i])
  456.         SwigStart[i-1] = SwigStart[i];
  457.         }
  458.         SwigPtrSort = 1;
  459.         for (i = 0; i < SWIG_CACHESIZE; i++)  
  460.           SwigCache[i].stat = 0;
  461.       }
  462.       
  463.       /* First check cache for matches.  Uses last cache value as starting point */
  464.       cache = &SwigCache[SwigLastCache];
  465.       for (i = 0; i < SWIG_CACHESIZE; i++) {
  466.         if (cache->stat) {
  467.           if (strcmp(_t,cache->name) == 0) {
  468.         if (strcmp(_c,cache->mapped) == 0) {
  469.           cache->stat++;
  470.           *ptr = (void *) _p;
  471.           if (cache->tp->cast) *ptr = (*(cache->tp->cast))(*ptr);
  472.           return (char *) 0;
  473.         }
  474.           }
  475.         }
  476.         SwigLastCache = (SwigLastCache+1) & SWIG_CACHEMASK;
  477.         if (!SwigLastCache) cache = SwigCache;
  478.         else cache++;
  479.       }
  480.       /* We have a type mismatch.  Will have to look through our type
  481.          mapping table to figure out whether or not we can accept this datatype */
  482.  
  483.       start = SwigStart[(int) _t[1]];
  484.       end = SwigStart[(int) _t[1]+1];
  485.       sp = &SwigPtrTable[start];
  486.       while (start < end) {
  487.         if (swigcmp(_t,sp) == 0) break;
  488.         sp++;
  489.         start++;
  490.       }
  491.       if (start >= end) sp = 0;
  492.       /* Try to find a match for this */
  493.       if (sp) {
  494.         while (swigcmp(_t,sp) == 0) {
  495.           name = sp->name;
  496.           len = sp->len;
  497.           tp = sp->next;
  498.           /* Try to find entry for our given datatype */
  499.           while(tp) {
  500.         if (tp->len >= 255) {
  501.           return _c;
  502.         }
  503.         strcpy(temp_type,tp->name);
  504.         strncat(temp_type,_t+len,255-tp->len);
  505.         if (strcmp(_c,temp_type) == 0) {
  506.           
  507.           strcpy(SwigCache[SwigCacheIndex].mapped,_c);
  508.           strcpy(SwigCache[SwigCacheIndex].name,_t);
  509.           SwigCache[SwigCacheIndex].stat = 1;
  510.           SwigCache[SwigCacheIndex].tp = tp;
  511.           SwigCacheIndex = SwigCacheIndex & SWIG_CACHEMASK;
  512.           
  513.           /* Get pointer value */
  514.           *ptr = (void *) _p;
  515.           if (tp->cast) *ptr = (*(tp->cast))(*ptr);
  516.           return (char *) 0;
  517.         }
  518.         tp = tp->next;
  519.           }
  520.           sp++;
  521.           /* Hmmm. Didn't find it this time */
  522.         }
  523.       }
  524.       /* Didn't find any sort of match for this data.  
  525.          Get the pointer value and return the received type */
  526.       *ptr = (void *) _p;
  527.       return _c;
  528.     } else {
  529.       /* Found a match on the first try.  Return pointer value */
  530.       *ptr = (void *) _p;
  531.       return (char *) 0;
  532.     }
  533.       } else {
  534.     /* No type specified.  Good luck */
  535.     *ptr = (void *) _p;
  536.     return (char *) 0;
  537.       }
  538.   } else {
  539.     if (strcmp (_c, "NULL") == 0) {
  540.     *ptr = (void *) 0;
  541.     return (char *) 0;
  542.     }
  543.     *ptr = (void *) 0;    
  544.     return _c;
  545.   }
  546. }
  547.  
  548. /* Compatibility mode */
  549.  
  550. #define _swig_get_hex  SWIG_GetPtr
  551.  
  552. #define SWIG_init    initpdflib
  553.  
  554. #define SWIG_name    "pdflib"
  555.  
  556. #include "pdf.h"
  557. extern PDF_pagesize  a0; 
  558. extern PDF_pagesize  a1; 
  559. extern PDF_pagesize  a2; 
  560. extern PDF_pagesize  a3; 
  561. extern PDF_pagesize  a4; 
  562. extern PDF_pagesize  a5; 
  563. extern PDF_pagesize  a6; 
  564. extern PDF_pagesize  b5; 
  565. extern PDF_pagesize  letter; 
  566. extern PDF_pagesize  legal; 
  567. extern PDF_pagesize  ledger; 
  568. extern PDF_pagesize  p11x17; 
  569. static int _wrap_a0_set(PyObject *val) {
  570.     char * tval;
  571.     PDF_pagesize * temp;
  572.  
  573.     tval = (char *) PyString_AsString(val);
  574.     if (PyErr_Occurred()) {
  575.         PyErr_SetString(PyExc_TypeError,"C variable 'a0'(PDF_pagesize *)");
  576.         return 1; 
  577.     }
  578.     if (tval) {
  579.         if (SWIG_GetPtr(tval,(void **) &temp,"_PDF_pagesize_p")) {
  580.             PyErr_SetString(PyExc_TypeError,"Type error in value of a0. Expected _PDF_pagesize_p.");
  581.         return 1;
  582.         }
  583.     }
  584.     a0 = *temp;
  585.     return 0;
  586. }
  587.  
  588. static PyObject *_wrap_a0_get() {
  589.     PyObject * pyobj;
  590.     char ptemp[128];
  591.  
  592.     SWIG_MakePtr(ptemp,(char *) &a0,"_PDF_pagesize_p");
  593.     pyobj = PyString_FromString(ptemp);
  594.     return pyobj;
  595. }
  596.  
  597. static int _wrap_a1_set(PyObject *val) {
  598.     char * tval;
  599.     PDF_pagesize * temp;
  600.  
  601.     tval = (char *) PyString_AsString(val);
  602.     if (PyErr_Occurred()) {
  603.         PyErr_SetString(PyExc_TypeError,"C variable 'a1'(PDF_pagesize *)");
  604.         return 1; 
  605.     }
  606.     if (tval) {
  607.         if (SWIG_GetPtr(tval,(void **) &temp,"_PDF_pagesize_p")) {
  608.             PyErr_SetString(PyExc_TypeError,"Type error in value of a1. Expected _PDF_pagesize_p.");
  609.         return 1;
  610.         }
  611.     }
  612.     a1 = *temp;
  613.     return 0;
  614. }
  615.  
  616. static PyObject *_wrap_a1_get() {
  617.     PyObject * pyobj;
  618.     char ptemp[128];
  619.  
  620.     SWIG_MakePtr(ptemp,(char *) &a1,"_PDF_pagesize_p");
  621.     pyobj = PyString_FromString(ptemp);
  622.     return pyobj;
  623. }
  624.  
  625. static int _wrap_a2_set(PyObject *val) {
  626.     char * tval;
  627.     PDF_pagesize * temp;
  628.  
  629.     tval = (char *) PyString_AsString(val);
  630.     if (PyErr_Occurred()) {
  631.         PyErr_SetString(PyExc_TypeError,"C variable 'a2'(PDF_pagesize *)");
  632.         return 1; 
  633.     }
  634.     if (tval) {
  635.         if (SWIG_GetPtr(tval,(void **) &temp,"_PDF_pagesize_p")) {
  636.             PyErr_SetString(PyExc_TypeError,"Type error in value of a2. Expected _PDF_pagesize_p.");
  637.         return 1;
  638.         }
  639.     }
  640.     a2 = *temp;
  641.     return 0;
  642. }
  643.  
  644. static PyObject *_wrap_a2_get() {
  645.     PyObject * pyobj;
  646.     char ptemp[128];
  647.  
  648.     SWIG_MakePtr(ptemp,(char *) &a2,"_PDF_pagesize_p");
  649.     pyobj = PyString_FromString(ptemp);
  650.     return pyobj;
  651. }
  652.  
  653. static int _wrap_a3_set(PyObject *val) {
  654.     char * tval;
  655.     PDF_pagesize * temp;
  656.  
  657.     tval = (char *) PyString_AsString(val);
  658.     if (PyErr_Occurred()) {
  659.         PyErr_SetString(PyExc_TypeError,"C variable 'a3'(PDF_pagesize *)");
  660.         return 1; 
  661.     }
  662.     if (tval) {
  663.         if (SWIG_GetPtr(tval,(void **) &temp,"_PDF_pagesize_p")) {
  664.             PyErr_SetString(PyExc_TypeError,"Type error in value of a3. Expected _PDF_pagesize_p.");
  665.         return 1;
  666.         }
  667.     }
  668.     a3 = *temp;
  669.     return 0;
  670. }
  671.  
  672. static PyObject *_wrap_a3_get() {
  673.     PyObject * pyobj;
  674.     char ptemp[128];
  675.  
  676.     SWIG_MakePtr(ptemp,(char *) &a3,"_PDF_pagesize_p");
  677.     pyobj = PyString_FromString(ptemp);
  678.     return pyobj;
  679. }
  680.  
  681. static int _wrap_a4_set(PyObject *val) {
  682.     char * tval;
  683.     PDF_pagesize * temp;
  684.  
  685.     tval = (char *) PyString_AsString(val);
  686.     if (PyErr_Occurred()) {
  687.         PyErr_SetString(PyExc_TypeError,"C variable 'a4'(PDF_pagesize *)");
  688.         return 1; 
  689.     }
  690.     if (tval) {
  691.         if (SWIG_GetPtr(tval,(void **) &temp,"_PDF_pagesize_p")) {
  692.             PyErr_SetString(PyExc_TypeError,"Type error in value of a4. Expected _PDF_pagesize_p.");
  693.         return 1;
  694.         }
  695.     }
  696.     a4 = *temp;
  697.     return 0;
  698. }
  699.  
  700. static PyObject *_wrap_a4_get() {
  701.     PyObject * pyobj;
  702.     char ptemp[128];
  703.  
  704.     SWIG_MakePtr(ptemp,(char *) &a4,"_PDF_pagesize_p");
  705.     pyobj = PyString_FromString(ptemp);
  706.     return pyobj;
  707. }
  708.  
  709. static int _wrap_a5_set(PyObject *val) {
  710.     char * tval;
  711.     PDF_pagesize * temp;
  712.  
  713.     tval = (char *) PyString_AsString(val);
  714.     if (PyErr_Occurred()) {
  715.         PyErr_SetString(PyExc_TypeError,"C variable 'a5'(PDF_pagesize *)");
  716.         return 1; 
  717.     }
  718.     if (tval) {
  719.         if (SWIG_GetPtr(tval,(void **) &temp,"_PDF_pagesize_p")) {
  720.             PyErr_SetString(PyExc_TypeError,"Type error in value of a5. Expected _PDF_pagesize_p.");
  721.         return 1;
  722.         }
  723.     }
  724.     a5 = *temp;
  725.     return 0;
  726. }
  727.  
  728. static PyObject *_wrap_a5_get() {
  729.     PyObject * pyobj;
  730.     char ptemp[128];
  731.  
  732.     SWIG_MakePtr(ptemp,(char *) &a5,"_PDF_pagesize_p");
  733.     pyobj = PyString_FromString(ptemp);
  734.     return pyobj;
  735. }
  736.  
  737. static int _wrap_a6_set(PyObject *val) {
  738.     char * tval;
  739.     PDF_pagesize * temp;
  740.  
  741.     tval = (char *) PyString_AsString(val);
  742.     if (PyErr_Occurred()) {
  743.         PyErr_SetString(PyExc_TypeError,"C variable 'a6'(PDF_pagesize *)");
  744.         return 1; 
  745.     }
  746.     if (tval) {
  747.         if (SWIG_GetPtr(tval,(void **) &temp,"_PDF_pagesize_p")) {
  748.             PyErr_SetString(PyExc_TypeError,"Type error in value of a6. Expected _PDF_pagesize_p.");
  749.         return 1;
  750.         }
  751.     }
  752.     a6 = *temp;
  753.     return 0;
  754. }
  755.  
  756. static PyObject *_wrap_a6_get() {
  757.     PyObject * pyobj;
  758.     char ptemp[128];
  759.  
  760.     SWIG_MakePtr(ptemp,(char *) &a6,"_PDF_pagesize_p");
  761.     pyobj = PyString_FromString(ptemp);
  762.     return pyobj;
  763. }
  764.  
  765. static int _wrap_b5_set(PyObject *val) {
  766.     char * tval;
  767.     PDF_pagesize * temp;
  768.  
  769.     tval = (char *) PyString_AsString(val);
  770.     if (PyErr_Occurred()) {
  771.         PyErr_SetString(PyExc_TypeError,"C variable 'b5'(PDF_pagesize *)");
  772.         return 1; 
  773.     }
  774.     if (tval) {
  775.         if (SWIG_GetPtr(tval,(void **) &temp,"_PDF_pagesize_p")) {
  776.             PyErr_SetString(PyExc_TypeError,"Type error in value of b5. Expected _PDF_pagesize_p.");
  777.         return 1;
  778.         }
  779.     }
  780.     b5 = *temp;
  781.     return 0;
  782. }
  783.  
  784. static PyObject *_wrap_b5_get() {
  785.     PyObject * pyobj;
  786.     char ptemp[128];
  787.  
  788.     SWIG_MakePtr(ptemp,(char *) &b5,"_PDF_pagesize_p");
  789.     pyobj = PyString_FromString(ptemp);
  790.     return pyobj;
  791. }
  792.  
  793. static int _wrap_letter_set(PyObject *val) {
  794.     char * tval;
  795.     PDF_pagesize * temp;
  796.  
  797.     tval = (char *) PyString_AsString(val);
  798.     if (PyErr_Occurred()) {
  799.         PyErr_SetString(PyExc_TypeError,"C variable 'letter'(PDF_pagesize *)");
  800.         return 1; 
  801.     }
  802.     if (tval) {
  803.         if (SWIG_GetPtr(tval,(void **) &temp,"_PDF_pagesize_p")) {
  804.             PyErr_SetString(PyExc_TypeError,"Type error in value of letter. Expected _PDF_pagesize_p.");
  805.         return 1;
  806.         }
  807.     }
  808.     letter = *temp;
  809.     return 0;
  810. }
  811.  
  812. static PyObject *_wrap_letter_get() {
  813.     PyObject * pyobj;
  814.     char ptemp[128];
  815.  
  816.     SWIG_MakePtr(ptemp,(char *) &letter,"_PDF_pagesize_p");
  817.     pyobj = PyString_FromString(ptemp);
  818.     return pyobj;
  819. }
  820.  
  821. static int _wrap_legal_set(PyObject *val) {
  822.     char * tval;
  823.     PDF_pagesize * temp;
  824.  
  825.     tval = (char *) PyString_AsString(val);
  826.     if (PyErr_Occurred()) {
  827.         PyErr_SetString(PyExc_TypeError,"C variable 'legal'(PDF_pagesize *)");
  828.         return 1; 
  829.     }
  830.     if (tval) {
  831.         if (SWIG_GetPtr(tval,(void **) &temp,"_PDF_pagesize_p")) {
  832.             PyErr_SetString(PyExc_TypeError,"Type error in value of legal. Expected _PDF_pagesize_p.");
  833.         return 1;
  834.         }
  835.     }
  836.     legal = *temp;
  837.     return 0;
  838. }
  839.  
  840. static PyObject *_wrap_legal_get() {
  841.     PyObject * pyobj;
  842.     char ptemp[128];
  843.  
  844.     SWIG_MakePtr(ptemp,(char *) &legal,"_PDF_pagesize_p");
  845.     pyobj = PyString_FromString(ptemp);
  846.     return pyobj;
  847. }
  848.  
  849. static int _wrap_ledger_set(PyObject *val) {
  850.     char * tval;
  851.     PDF_pagesize * temp;
  852.  
  853.     tval = (char *) PyString_AsString(val);
  854.     if (PyErr_Occurred()) {
  855.         PyErr_SetString(PyExc_TypeError,"C variable 'ledger'(PDF_pagesize *)");
  856.         return 1; 
  857.     }
  858.     if (tval) {
  859.         if (SWIG_GetPtr(tval,(void **) &temp,"_PDF_pagesize_p")) {
  860.             PyErr_SetString(PyExc_TypeError,"Type error in value of ledger. Expected _PDF_pagesize_p.");
  861.         return 1;
  862.         }
  863.     }
  864.     ledger = *temp;
  865.     return 0;
  866. }
  867.  
  868. static PyObject *_wrap_ledger_get() {
  869.     PyObject * pyobj;
  870.     char ptemp[128];
  871.  
  872.     SWIG_MakePtr(ptemp,(char *) &ledger,"_PDF_pagesize_p");
  873.     pyobj = PyString_FromString(ptemp);
  874.     return pyobj;
  875. }
  876.  
  877. static int _wrap_p11x17_set(PyObject *val) {
  878.     char * tval;
  879.     PDF_pagesize * temp;
  880.  
  881.     tval = (char *) PyString_AsString(val);
  882.     if (PyErr_Occurred()) {
  883.         PyErr_SetString(PyExc_TypeError,"C variable 'p11x17'(PDF_pagesize *)");
  884.         return 1; 
  885.     }
  886.     if (tval) {
  887.         if (SWIG_GetPtr(tval,(void **) &temp,"_PDF_pagesize_p")) {
  888.             PyErr_SetString(PyExc_TypeError,"Type error in value of p11x17. Expected _PDF_pagesize_p.");
  889.         return 1;
  890.         }
  891.     }
  892.     p11x17 = *temp;
  893.     return 0;
  894. }
  895.  
  896. static PyObject *_wrap_p11x17_get() {
  897.     PyObject * pyobj;
  898.     char ptemp[128];
  899.  
  900.     SWIG_MakePtr(ptemp,(char *) &p11x17,"_PDF_pagesize_p");
  901.     pyobj = PyString_FromString(ptemp);
  902.     return pyobj;
  903. }
  904.  
  905. static PyObject *_wrap_PDF_get_info(PyObject *self, PyObject *args) {
  906.     PyObject * _resultobj;
  907.     PDF_info * _result;
  908.     char _ptemp[128];
  909.  
  910.     self = self;
  911.     if(!PyArg_ParseTuple(args,":PDF_get_info")) 
  912.         return NULL;
  913.     _result = (PDF_info *)PDF_get_info();
  914.     SWIG_MakePtr(_ptemp, (char *) _result,"_PDF_info_p");
  915.     _resultobj = Py_BuildValue("s",_ptemp);
  916.     return _resultobj;
  917. }
  918.  
  919. static PyObject *_wrap_PDF_open(PyObject *self, PyObject *args) {
  920.     PyObject * _resultobj;
  921.     PDF * _result;
  922.     FILE * _arg0;
  923.     PDF_info * _arg1;
  924.     char * _argc0 = 0;
  925.     char * _argc1 = 0;
  926.     char _ptemp[128];
  927.  
  928.     self = self;
  929.     if(!PyArg_ParseTuple(args,"ss:PDF_open",&_argc0,&_argc1)) 
  930.         return NULL;
  931.     if (_argc0) {
  932.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_FILE_p")) {
  933.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_open. Expected _FILE_p.");
  934.         return NULL;
  935.         }
  936.     }
  937.     if (_argc1) {
  938.         if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_PDF_info_p")) {
  939.             PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of PDF_open. Expected _PDF_info_p.");
  940.         return NULL;
  941.         }
  942.     }
  943.     _result = (PDF *)PDF_open(_arg0,_arg1);
  944.     SWIG_MakePtr(_ptemp, (char *) _result,"_PDF_p");
  945.     _resultobj = Py_BuildValue("s",_ptemp);
  946.     return _resultobj;
  947. }
  948.  
  949. static PyObject *_wrap_PDF_close(PyObject *self, PyObject *args) {
  950.     PyObject * _resultobj;
  951.     PDF * _arg0;
  952.     char * _argc0 = 0;
  953.  
  954.     self = self;
  955.     if(!PyArg_ParseTuple(args,"s:PDF_close",&_argc0)) 
  956.         return NULL;
  957.     if (_argc0) {
  958.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  959.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_close. Expected _PDF_p.");
  960.         return NULL;
  961.         }
  962.     }
  963.     PDF_close(_arg0);
  964.     Py_INCREF(Py_None);
  965.     _resultobj = Py_None;
  966.     return _resultobj;
  967. }
  968.  
  969. static PyObject *_wrap_PDF_begin_page(PyObject *self, PyObject *args) {
  970.     PyObject * _resultobj;
  971.     PDF * _arg0;
  972.     float  _arg1;
  973.     float  _arg2;
  974.     char * _argc0 = 0;
  975.  
  976.     self = self;
  977.     if(!PyArg_ParseTuple(args,"sff:PDF_begin_page",&_argc0,&_arg1,&_arg2)) 
  978.         return NULL;
  979.     if (_argc0) {
  980.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  981.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_begin_page. Expected _PDF_p.");
  982.         return NULL;
  983.         }
  984.     }
  985.     PDF_begin_page(_arg0,_arg1,_arg2);
  986.     Py_INCREF(Py_None);
  987.     _resultobj = Py_None;
  988.     return _resultobj;
  989. }
  990.  
  991. static PyObject *_wrap_PDF_end_page(PyObject *self, PyObject *args) {
  992.     PyObject * _resultobj;
  993.     PDF * _arg0;
  994.     char * _argc0 = 0;
  995.  
  996.     self = self;
  997.     if(!PyArg_ParseTuple(args,"s:PDF_end_page",&_argc0)) 
  998.         return NULL;
  999.     if (_argc0) {
  1000.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  1001.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_end_page. Expected _PDF_p.");
  1002.         return NULL;
  1003.         }
  1004.     }
  1005.     PDF_end_page(_arg0);
  1006.     Py_INCREF(Py_None);
  1007.     _resultobj = Py_None;
  1008.     return _resultobj;
  1009. }
  1010.  
  1011. static PyObject *_wrap_PDF_set_transition(PyObject *self, PyObject *args) {
  1012.     PyObject * _resultobj;
  1013.     PDF * _arg0;
  1014.     PDF_transition  _arg1;
  1015.     char * _argc0 = 0;
  1016.  
  1017.     self = self;
  1018.     if(!PyArg_ParseTuple(args,"si:PDF_set_transition",&_argc0,&_arg1)) 
  1019.         return NULL;
  1020.     if (_argc0) {
  1021.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  1022.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_set_transition. Expected _PDF_p.");
  1023.         return NULL;
  1024.         }
  1025.     }
  1026.     PDF_set_transition(_arg0,_arg1);
  1027.     Py_INCREF(Py_None);
  1028.     _resultobj = Py_None;
  1029.     return _resultobj;
  1030. }
  1031.  
  1032. static PyObject *_wrap_PDF_set_duration(PyObject *self, PyObject *args) {
  1033.     PyObject * _resultobj;
  1034.     PDF * _arg0;
  1035.     float  _arg1;
  1036.     char * _argc0 = 0;
  1037.  
  1038.     self = self;
  1039.     if(!PyArg_ParseTuple(args,"sf:PDF_set_duration",&_argc0,&_arg1)) 
  1040.         return NULL;
  1041.     if (_argc0) {
  1042.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  1043.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_set_duration. Expected _PDF_p.");
  1044.         return NULL;
  1045.         }
  1046.     }
  1047.     PDF_set_duration(_arg0,_arg1);
  1048.     Py_INCREF(Py_None);
  1049.     _resultobj = Py_None;
  1050.     return _resultobj;
  1051. }
  1052.  
  1053. static PyObject *_wrap_PDF_malloc(PyObject *self, PyObject *args) {
  1054.     PyObject * _resultobj;
  1055.     void * _result;
  1056.     size_t * _arg0;
  1057.     char * _arg1;
  1058.     char * _argc0 = 0;
  1059.     char _ptemp[128];
  1060.  
  1061.     self = self;
  1062.     if(!PyArg_ParseTuple(args,"ss:PDF_malloc",&_argc0,&_arg1)) 
  1063.         return NULL;
  1064.     if (_argc0) {
  1065.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_size_t_p")) {
  1066.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_malloc. Expected _size_t_p.");
  1067.         return NULL;
  1068.         }
  1069.     }
  1070.     _result = (void *)PDF_malloc(*_arg0,_arg1);
  1071.     SWIG_MakePtr(_ptemp, (char *) _result,"_void_p");
  1072.     _resultobj = Py_BuildValue("s",_ptemp);
  1073.     return _resultobj;
  1074. }
  1075.  
  1076. static PyObject *_wrap_PDF_free(PyObject *self, PyObject *args) {
  1077.     PyObject * _resultobj;
  1078.     void * _arg0;
  1079.     char * _argc0 = 0;
  1080.  
  1081.     self = self;
  1082.     if(!PyArg_ParseTuple(args,"s:PDF_free",&_argc0)) 
  1083.         return NULL;
  1084.     if (_argc0) {
  1085.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,(char *) 0 )) {
  1086.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_free. Expected _void_p.");
  1087.         return NULL;
  1088.         }
  1089.     }
  1090.     PDF_free(_arg0);
  1091.     Py_INCREF(Py_None);
  1092.     _resultobj = Py_None;
  1093.     return _resultobj;
  1094. }
  1095.  
  1096. static PyObject *_wrap_PDF_show(PyObject *self, PyObject *args) {
  1097.     PyObject * _resultobj;
  1098.     PDF * _arg0;
  1099.     char * _arg1;
  1100.     char * _argc0 = 0;
  1101.  
  1102.     self = self;
  1103.     if(!PyArg_ParseTuple(args,"ss:PDF_show",&_argc0,&_arg1)) 
  1104.         return NULL;
  1105.     if (_argc0) {
  1106.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  1107.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_show. Expected _PDF_p.");
  1108.         return NULL;
  1109.         }
  1110.     }
  1111.     PDF_show(_arg0,_arg1);
  1112.     Py_INCREF(Py_None);
  1113.     _resultobj = Py_None;
  1114.     return _resultobj;
  1115. }
  1116.  
  1117. static PyObject *_wrap_PDF_show_xy(PyObject *self, PyObject *args) {
  1118.     PyObject * _resultobj;
  1119.     PDF * _arg0;
  1120.     char * _arg1;
  1121.     float  _arg2;
  1122.     float  _arg3;
  1123.     char * _argc0 = 0;
  1124.  
  1125.     self = self;
  1126.     if(!PyArg_ParseTuple(args,"ssff:PDF_show_xy",&_argc0,&_arg1,&_arg2,&_arg3)) 
  1127.         return NULL;
  1128.     if (_argc0) {
  1129.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  1130.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_show_xy. Expected _PDF_p.");
  1131.         return NULL;
  1132.         }
  1133.     }
  1134.     PDF_show_xy(_arg0,_arg1,_arg2,_arg3);
  1135.     Py_INCREF(Py_None);
  1136.     _resultobj = Py_None;
  1137.     return _resultobj;
  1138. }
  1139.  
  1140. static PyObject *_wrap_PDF_set_font(PyObject *self, PyObject *args) {
  1141.     PyObject * _resultobj;
  1142.     PDF * _arg0;
  1143.     char * _arg1;
  1144.     float  _arg2;
  1145.     PDF_encoding  _arg3;
  1146.     char * _argc0 = 0;
  1147.  
  1148.     self = self;
  1149.     if(!PyArg_ParseTuple(args,"ssfi:PDF_set_font",&_argc0,&_arg1,&_arg2,&_arg3)) 
  1150.         return NULL;
  1151.     if (_argc0) {
  1152.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  1153.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_set_font. Expected _PDF_p.");
  1154.         return NULL;
  1155.         }
  1156.     }
  1157.     PDF_set_font(_arg0,_arg1,_arg2,_arg3);
  1158.     Py_INCREF(Py_None);
  1159.     _resultobj = Py_None;
  1160.     return _resultobj;
  1161. }
  1162.  
  1163. static PyObject *_wrap_PDF_set_leading(PyObject *self, PyObject *args) {
  1164.     PyObject * _resultobj;
  1165.     PDF * _arg0;
  1166.     float  _arg1;
  1167.     char * _argc0 = 0;
  1168.  
  1169.     self = self;
  1170.     if(!PyArg_ParseTuple(args,"sf:PDF_set_leading",&_argc0,&_arg1)) 
  1171.         return NULL;
  1172.     if (_argc0) {
  1173.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  1174.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_set_leading. Expected _PDF_p.");
  1175.         return NULL;
  1176.         }
  1177.     }
  1178.     PDF_set_leading(_arg0,_arg1);
  1179.     Py_INCREF(Py_None);
  1180.     _resultobj = Py_None;
  1181.     return _resultobj;
  1182. }
  1183.  
  1184. static PyObject *_wrap_PDF_set_text_rise(PyObject *self, PyObject *args) {
  1185.     PyObject * _resultobj;
  1186.     PDF * _arg0;
  1187.     float  _arg1;
  1188.     char * _argc0 = 0;
  1189.  
  1190.     self = self;
  1191.     if(!PyArg_ParseTuple(args,"sf:PDF_set_text_rise",&_argc0,&_arg1)) 
  1192.         return NULL;
  1193.     if (_argc0) {
  1194.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  1195.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_set_text_rise. Expected _PDF_p.");
  1196.         return NULL;
  1197.         }
  1198.     }
  1199.     PDF_set_text_rise(_arg0,_arg1);
  1200.     Py_INCREF(Py_None);
  1201.     _resultobj = Py_None;
  1202.     return _resultobj;
  1203. }
  1204.  
  1205. static PyObject *_wrap_PDF_set_horiz_scaling(PyObject *self, PyObject *args) {
  1206.     PyObject * _resultobj;
  1207.     PDF * _arg0;
  1208.     float  _arg1;
  1209.     char * _argc0 = 0;
  1210.  
  1211.     self = self;
  1212.     if(!PyArg_ParseTuple(args,"sf:PDF_set_horiz_scaling",&_argc0,&_arg1)) 
  1213.         return NULL;
  1214.     if (_argc0) {
  1215.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  1216.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_set_horiz_scaling. Expected _PDF_p.");
  1217.         return NULL;
  1218.         }
  1219.     }
  1220.     PDF_set_horiz_scaling(_arg0,_arg1);
  1221.     Py_INCREF(Py_None);
  1222.     _resultobj = Py_None;
  1223.     return _resultobj;
  1224. }
  1225.  
  1226. static PyObject *_wrap_PDF_set_text_rendering(PyObject *self, PyObject *args) {
  1227.     PyObject * _resultobj;
  1228.     PDF * _arg0;
  1229.     byte  _arg1;
  1230.     char * _argc0 = 0;
  1231.  
  1232.     self = self;
  1233.     if(!PyArg_ParseTuple(args,"sb:PDF_set_text_rendering",&_argc0,&_arg1)) 
  1234.         return NULL;
  1235.     if (_argc0) {
  1236.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  1237.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_set_text_rendering. Expected _PDF_p.");
  1238.         return NULL;
  1239.         }
  1240.     }
  1241.     PDF_set_text_rendering(_arg0,_arg1);
  1242.     Py_INCREF(Py_None);
  1243.     _resultobj = Py_None;
  1244.     return _resultobj;
  1245. }
  1246.  
  1247. static PyObject *_wrap_PDF_set_text_matrix(PyObject *self, PyObject *args) {
  1248.     PyObject * _resultobj;
  1249.     PDF * _arg0;
  1250.     PDF_matrix * _arg1;
  1251.     char * _argc0 = 0;
  1252.     char * _argc1 = 0;
  1253.  
  1254.     self = self;
  1255.     if(!PyArg_ParseTuple(args,"ss:PDF_set_text_matrix",&_argc0,&_argc1)) 
  1256.         return NULL;
  1257.     if (_argc0) {
  1258.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  1259.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_set_text_matrix. Expected _PDF_p.");
  1260.         return NULL;
  1261.         }
  1262.     }
  1263.     if (_argc1) {
  1264.         if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_PDF_matrix_p")) {
  1265.             PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of PDF_set_text_matrix. Expected _PDF_matrix_p.");
  1266.         return NULL;
  1267.         }
  1268.     }
  1269.     PDF_set_text_matrix(_arg0,*_arg1);
  1270.     Py_INCREF(Py_None);
  1271.     _resultobj = Py_None;
  1272.     return _resultobj;
  1273. }
  1274.  
  1275. static PyObject *_wrap_PDF_set_text_pos(PyObject *self, PyObject *args) {
  1276.     PyObject * _resultobj;
  1277.     PDF * _arg0;
  1278.     float  _arg1;
  1279.     float  _arg2;
  1280.     char * _argc0 = 0;
  1281.  
  1282.     self = self;
  1283.     if(!PyArg_ParseTuple(args,"sff:PDF_set_text_pos",&_argc0,&_arg1,&_arg2)) 
  1284.         return NULL;
  1285.     if (_argc0) {
  1286.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  1287.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_set_text_pos. Expected _PDF_p.");
  1288.         return NULL;
  1289.         }
  1290.     }
  1291.     PDF_set_text_pos(_arg0,_arg1,_arg2);
  1292.     Py_INCREF(Py_None);
  1293.     _resultobj = Py_None;
  1294.     return _resultobj;
  1295. }
  1296.  
  1297. static PyObject *_wrap_PDF_set_char_spacing(PyObject *self, PyObject *args) {
  1298.     PyObject * _resultobj;
  1299.     PDF * _arg0;
  1300.     float  _arg1;
  1301.     char * _argc0 = 0;
  1302.  
  1303.     self = self;
  1304.     if(!PyArg_ParseTuple(args,"sf:PDF_set_char_spacing",&_argc0,&_arg1)) 
  1305.         return NULL;
  1306.     if (_argc0) {
  1307.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  1308.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_set_char_spacing. Expected _PDF_p.");
  1309.         return NULL;
  1310.         }
  1311.     }
  1312.     PDF_set_char_spacing(_arg0,_arg1);
  1313.     Py_INCREF(Py_None);
  1314.     _resultobj = Py_None;
  1315.     return _resultobj;
  1316. }
  1317.  
  1318. static PyObject *_wrap_PDF_set_word_spacing(PyObject *self, PyObject *args) {
  1319.     PyObject * _resultobj;
  1320.     PDF * _arg0;
  1321.     float  _arg1;
  1322.     char * _argc0 = 0;
  1323.  
  1324.     self = self;
  1325.     if(!PyArg_ParseTuple(args,"sf:PDF_set_word_spacing",&_argc0,&_arg1)) 
  1326.         return NULL;
  1327.     if (_argc0) {
  1328.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  1329.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_set_word_spacing. Expected _PDF_p.");
  1330.         return NULL;
  1331.         }
  1332.     }
  1333.     PDF_set_word_spacing(_arg0,_arg1);
  1334.     Py_INCREF(Py_None);
  1335.     _resultobj = Py_None;
  1336.     return _resultobj;
  1337. }
  1338.  
  1339. static PyObject *_wrap_PDF_continue_text(PyObject *self, PyObject *args) {
  1340.     PyObject * _resultobj;
  1341.     PDF * _arg0;
  1342.     char * _arg1;
  1343.     char * _argc0 = 0;
  1344.  
  1345.     self = self;
  1346.     if(!PyArg_ParseTuple(args,"ss:PDF_continue_text",&_argc0,&_arg1)) 
  1347.         return NULL;
  1348.     if (_argc0) {
  1349.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  1350.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_continue_text. Expected _PDF_p.");
  1351.         return NULL;
  1352.         }
  1353.     }
  1354.     PDF_continue_text(_arg0,_arg1);
  1355.     Py_INCREF(Py_None);
  1356.     _resultobj = Py_None;
  1357.     return _resultobj;
  1358. }
  1359.  
  1360. static PyObject *_wrap_PDF_save(PyObject *self, PyObject *args) {
  1361.     PyObject * _resultobj;
  1362.     PDF * _arg0;
  1363.     char * _argc0 = 0;
  1364.  
  1365.     self = self;
  1366.     if(!PyArg_ParseTuple(args,"s:PDF_save",&_argc0)) 
  1367.         return NULL;
  1368.     if (_argc0) {
  1369.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  1370.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_save. Expected _PDF_p.");
  1371.         return NULL;
  1372.         }
  1373.     }
  1374.     PDF_save(_arg0);
  1375.     Py_INCREF(Py_None);
  1376.     _resultobj = Py_None;
  1377.     return _resultobj;
  1378. }
  1379.  
  1380. static PyObject *_wrap_PDF_restore(PyObject *self, PyObject *args) {
  1381.     PyObject * _resultobj;
  1382.     PDF * _arg0;
  1383.     char * _argc0 = 0;
  1384.  
  1385.     self = self;
  1386.     if(!PyArg_ParseTuple(args,"s:PDF_restore",&_argc0)) 
  1387.         return NULL;
  1388.     if (_argc0) {
  1389.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  1390.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_restore. Expected _PDF_p.");
  1391.         return NULL;
  1392.         }
  1393.     }
  1394.     PDF_restore(_arg0);
  1395.     Py_INCREF(Py_None);
  1396.     _resultobj = Py_None;
  1397.     return _resultobj;
  1398. }
  1399.  
  1400. static PyObject *_wrap_PDF_translate(PyObject *self, PyObject *args) {
  1401.     PyObject * _resultobj;
  1402.     PDF * _arg0;
  1403.     float  _arg1;
  1404.     float  _arg2;
  1405.     char * _argc0 = 0;
  1406.  
  1407.     self = self;
  1408.     if(!PyArg_ParseTuple(args,"sff:PDF_translate",&_argc0,&_arg1,&_arg2)) 
  1409.         return NULL;
  1410.     if (_argc0) {
  1411.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  1412.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_translate. Expected _PDF_p.");
  1413.         return NULL;
  1414.         }
  1415.     }
  1416.     PDF_translate(_arg0,_arg1,_arg2);
  1417.     Py_INCREF(Py_None);
  1418.     _resultobj = Py_None;
  1419.     return _resultobj;
  1420. }
  1421.  
  1422. static PyObject *_wrap_PDF_scale(PyObject *self, PyObject *args) {
  1423.     PyObject * _resultobj;
  1424.     PDF * _arg0;
  1425.     float  _arg1;
  1426.     float  _arg2;
  1427.     char * _argc0 = 0;
  1428.  
  1429.     self = self;
  1430.     if(!PyArg_ParseTuple(args,"sff:PDF_scale",&_argc0,&_arg1,&_arg2)) 
  1431.         return NULL;
  1432.     if (_argc0) {
  1433.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  1434.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_scale. Expected _PDF_p.");
  1435.         return NULL;
  1436.         }
  1437.     }
  1438.     PDF_scale(_arg0,_arg1,_arg2);
  1439.     Py_INCREF(Py_None);
  1440.     _resultobj = Py_None;
  1441.     return _resultobj;
  1442. }
  1443.  
  1444. static PyObject *_wrap_PDF_rotate(PyObject *self, PyObject *args) {
  1445.     PyObject * _resultobj;
  1446.     PDF * _arg0;
  1447.     float  _arg1;
  1448.     char * _argc0 = 0;
  1449.  
  1450.     self = self;
  1451.     if(!PyArg_ParseTuple(args,"sf:PDF_rotate",&_argc0,&_arg1)) 
  1452.         return NULL;
  1453.     if (_argc0) {
  1454.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  1455.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_rotate. Expected _PDF_p.");
  1456.         return NULL;
  1457.         }
  1458.     }
  1459.     PDF_rotate(_arg0,_arg1);
  1460.     Py_INCREF(Py_None);
  1461.     _resultobj = Py_None;
  1462.     return _resultobj;
  1463. }
  1464.  
  1465. static PyObject *_wrap_PDF_setdash(PyObject *self, PyObject *args) {
  1466.     PyObject * _resultobj;
  1467.     PDF * _arg0;
  1468.     float  _arg1;
  1469.     float  _arg2;
  1470.     char * _argc0 = 0;
  1471.  
  1472.     self = self;
  1473.     if(!PyArg_ParseTuple(args,"sff:PDF_setdash",&_argc0,&_arg1,&_arg2)) 
  1474.         return NULL;
  1475.     if (_argc0) {
  1476.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  1477.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_setdash. Expected _PDF_p.");
  1478.         return NULL;
  1479.         }
  1480.     }
  1481.     PDF_setdash(_arg0,_arg1,_arg2);
  1482.     Py_INCREF(Py_None);
  1483.     _resultobj = Py_None;
  1484.     return _resultobj;
  1485. }
  1486.  
  1487. static PyObject *_wrap_PDF_setpolydash(PyObject *self, PyObject *args) {
  1488.     PyObject * _resultobj;
  1489.     PDF * _arg0;
  1490.     float * _arg1;
  1491.     int  _arg2;
  1492.     char * _argc0 = 0;
  1493.     char * _argc1 = 0;
  1494.  
  1495.     self = self;
  1496.     if(!PyArg_ParseTuple(args,"ssi:PDF_setpolydash",&_argc0,&_argc1,&_arg2)) 
  1497.         return NULL;
  1498.     if (_argc0) {
  1499.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  1500.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_setpolydash. Expected _PDF_p.");
  1501.         return NULL;
  1502.         }
  1503.     }
  1504.     if (_argc1) {
  1505.         if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_float_p")) {
  1506.             PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of PDF_setpolydash. Expected _float_p.");
  1507.         return NULL;
  1508.         }
  1509.     }
  1510.     PDF_setpolydash(_arg0,_arg1,_arg2);
  1511.     Py_INCREF(Py_None);
  1512.     _resultobj = Py_None;
  1513.     return _resultobj;
  1514. }
  1515.  
  1516. static PyObject *_wrap_PDF_setflat(PyObject *self, PyObject *args) {
  1517.     PyObject * _resultobj;
  1518.     PDF * _arg0;
  1519.     float  _arg1;
  1520.     char * _argc0 = 0;
  1521.  
  1522.     self = self;
  1523.     if(!PyArg_ParseTuple(args,"sf:PDF_setflat",&_argc0,&_arg1)) 
  1524.         return NULL;
  1525.     if (_argc0) {
  1526.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  1527.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_setflat. Expected _PDF_p.");
  1528.         return NULL;
  1529.         }
  1530.     }
  1531.     PDF_setflat(_arg0,_arg1);
  1532.     Py_INCREF(Py_None);
  1533.     _resultobj = Py_None;
  1534.     return _resultobj;
  1535. }
  1536.  
  1537. static PyObject *_wrap_PDF_setlinejoin(PyObject *self, PyObject *args) {
  1538.     PyObject * _resultobj;
  1539.     PDF * _arg0;
  1540.     byte  _arg1;
  1541.     char * _argc0 = 0;
  1542.  
  1543.     self = self;
  1544.     if(!PyArg_ParseTuple(args,"sb:PDF_setlinejoin",&_argc0,&_arg1)) 
  1545.         return NULL;
  1546.     if (_argc0) {
  1547.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  1548.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_setlinejoin. Expected _PDF_p.");
  1549.         return NULL;
  1550.         }
  1551.     }
  1552.     PDF_setlinejoin(_arg0,_arg1);
  1553.     Py_INCREF(Py_None);
  1554.     _resultobj = Py_None;
  1555.     return _resultobj;
  1556. }
  1557.  
  1558. static PyObject *_wrap_PDF_setlinecap(PyObject *self, PyObject *args) {
  1559.     PyObject * _resultobj;
  1560.     PDF * _arg0;
  1561.     byte  _arg1;
  1562.     char * _argc0 = 0;
  1563.  
  1564.     self = self;
  1565.     if(!PyArg_ParseTuple(args,"sb:PDF_setlinecap",&_argc0,&_arg1)) 
  1566.         return NULL;
  1567.     if (_argc0) {
  1568.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  1569.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_setlinecap. Expected _PDF_p.");
  1570.         return NULL;
  1571.         }
  1572.     }
  1573.     PDF_setlinecap(_arg0,_arg1);
  1574.     Py_INCREF(Py_None);
  1575.     _resultobj = Py_None;
  1576.     return _resultobj;
  1577. }
  1578.  
  1579. static PyObject *_wrap_PDF_setmiterlimit(PyObject *self, PyObject *args) {
  1580.     PyObject * _resultobj;
  1581.     PDF * _arg0;
  1582.     float  _arg1;
  1583.     char * _argc0 = 0;
  1584.  
  1585.     self = self;
  1586.     if(!PyArg_ParseTuple(args,"sf:PDF_setmiterlimit",&_argc0,&_arg1)) 
  1587.         return NULL;
  1588.     if (_argc0) {
  1589.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  1590.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_setmiterlimit. Expected _PDF_p.");
  1591.         return NULL;
  1592.         }
  1593.     }
  1594.     PDF_setmiterlimit(_arg0,_arg1);
  1595.     Py_INCREF(Py_None);
  1596.     _resultobj = Py_None;
  1597.     return _resultobj;
  1598. }
  1599.  
  1600. static PyObject *_wrap_PDF_setlinewidth(PyObject *self, PyObject *args) {
  1601.     PyObject * _resultobj;
  1602.     PDF * _arg0;
  1603.     float  _arg1;
  1604.     char * _argc0 = 0;
  1605.  
  1606.     self = self;
  1607.     if(!PyArg_ParseTuple(args,"sf:PDF_setlinewidth",&_argc0,&_arg1)) 
  1608.         return NULL;
  1609.     if (_argc0) {
  1610.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  1611.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_setlinewidth. Expected _PDF_p.");
  1612.         return NULL;
  1613.         }
  1614.     }
  1615.     PDF_setlinewidth(_arg0,_arg1);
  1616.     Py_INCREF(Py_None);
  1617.     _resultobj = Py_None;
  1618.     return _resultobj;
  1619. }
  1620.  
  1621. static PyObject *_wrap_PDF_setgray_fill(PyObject *self, PyObject *args) {
  1622.     PyObject * _resultobj;
  1623.     PDF * _arg0;
  1624.     float  _arg1;
  1625.     char * _argc0 = 0;
  1626.  
  1627.     self = self;
  1628.     if(!PyArg_ParseTuple(args,"sf:PDF_setgray_fill",&_argc0,&_arg1)) 
  1629.         return NULL;
  1630.     if (_argc0) {
  1631.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  1632.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_setgray_fill. Expected _PDF_p.");
  1633.         return NULL;
  1634.         }
  1635.     }
  1636.     PDF_setgray_fill(_arg0,_arg1);
  1637.     Py_INCREF(Py_None);
  1638.     _resultobj = Py_None;
  1639.     return _resultobj;
  1640. }
  1641.  
  1642. static PyObject *_wrap_PDF_setgray_stroke(PyObject *self, PyObject *args) {
  1643.     PyObject * _resultobj;
  1644.     PDF * _arg0;
  1645.     float  _arg1;
  1646.     char * _argc0 = 0;
  1647.  
  1648.     self = self;
  1649.     if(!PyArg_ParseTuple(args,"sf:PDF_setgray_stroke",&_argc0,&_arg1)) 
  1650.         return NULL;
  1651.     if (_argc0) {
  1652.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  1653.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_setgray_stroke. Expected _PDF_p.");
  1654.         return NULL;
  1655.         }
  1656.     }
  1657.     PDF_setgray_stroke(_arg0,_arg1);
  1658.     Py_INCREF(Py_None);
  1659.     _resultobj = Py_None;
  1660.     return _resultobj;
  1661. }
  1662.  
  1663. static PyObject *_wrap_PDF_setgray(PyObject *self, PyObject *args) {
  1664.     PyObject * _resultobj;
  1665.     PDF * _arg0;
  1666.     float  _arg1;
  1667.     char * _argc0 = 0;
  1668.  
  1669.     self = self;
  1670.     if(!PyArg_ParseTuple(args,"sf:PDF_setgray",&_argc0,&_arg1)) 
  1671.         return NULL;
  1672.     if (_argc0) {
  1673.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  1674.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_setgray. Expected _PDF_p.");
  1675.         return NULL;
  1676.         }
  1677.     }
  1678.     PDF_setgray(_arg0,_arg1);
  1679.     Py_INCREF(Py_None);
  1680.     _resultobj = Py_None;
  1681.     return _resultobj;
  1682. }
  1683.  
  1684. static PyObject *_wrap_PDF_setrgbcolor_fill(PyObject *self, PyObject *args) {
  1685.     PyObject * _resultobj;
  1686.     PDF * _arg0;
  1687.     float  _arg1;
  1688.     float  _arg2;
  1689.     float  _arg3;
  1690.     char * _argc0 = 0;
  1691.  
  1692.     self = self;
  1693.     if(!PyArg_ParseTuple(args,"sfff:PDF_setrgbcolor_fill",&_argc0,&_arg1,&_arg2,&_arg3)) 
  1694.         return NULL;
  1695.     if (_argc0) {
  1696.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  1697.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_setrgbcolor_fill. Expected _PDF_p.");
  1698.         return NULL;
  1699.         }
  1700.     }
  1701.     PDF_setrgbcolor_fill(_arg0,_arg1,_arg2,_arg3);
  1702.     Py_INCREF(Py_None);
  1703.     _resultobj = Py_None;
  1704.     return _resultobj;
  1705. }
  1706.  
  1707. static PyObject *_wrap_PDF_setrgbcolor_stroke(PyObject *self, PyObject *args) {
  1708.     PyObject * _resultobj;
  1709.     PDF * _arg0;
  1710.     float  _arg1;
  1711.     float  _arg2;
  1712.     float  _arg3;
  1713.     char * _argc0 = 0;
  1714.  
  1715.     self = self;
  1716.     if(!PyArg_ParseTuple(args,"sfff:PDF_setrgbcolor_stroke",&_argc0,&_arg1,&_arg2,&_arg3)) 
  1717.         return NULL;
  1718.     if (_argc0) {
  1719.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  1720.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_setrgbcolor_stroke. Expected _PDF_p.");
  1721.         return NULL;
  1722.         }
  1723.     }
  1724.     PDF_setrgbcolor_stroke(_arg0,_arg1,_arg2,_arg3);
  1725.     Py_INCREF(Py_None);
  1726.     _resultobj = Py_None;
  1727.     return _resultobj;
  1728. }
  1729.  
  1730. static PyObject *_wrap_PDF_setrgbcolor(PyObject *self, PyObject *args) {
  1731.     PyObject * _resultobj;
  1732.     PDF * _arg0;
  1733.     float  _arg1;
  1734.     float  _arg2;
  1735.     float  _arg3;
  1736.     char * _argc0 = 0;
  1737.  
  1738.     self = self;
  1739.     if(!PyArg_ParseTuple(args,"sfff:PDF_setrgbcolor",&_argc0,&_arg1,&_arg2,&_arg3)) 
  1740.         return NULL;
  1741.     if (_argc0) {
  1742.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  1743.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_setrgbcolor. Expected _PDF_p.");
  1744.         return NULL;
  1745.         }
  1746.     }
  1747.     PDF_setrgbcolor(_arg0,_arg1,_arg2,_arg3);
  1748.     Py_INCREF(Py_None);
  1749.     _resultobj = Py_None;
  1750.     return _resultobj;
  1751. }
  1752.  
  1753. static PyObject *_wrap_PDF_moveto(PyObject *self, PyObject *args) {
  1754.     PyObject * _resultobj;
  1755.     PDF * _arg0;
  1756.     float  _arg1;
  1757.     float  _arg2;
  1758.     char * _argc0 = 0;
  1759.  
  1760.     self = self;
  1761.     if(!PyArg_ParseTuple(args,"sff:PDF_moveto",&_argc0,&_arg1,&_arg2)) 
  1762.         return NULL;
  1763.     if (_argc0) {
  1764.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  1765.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_moveto. Expected _PDF_p.");
  1766.         return NULL;
  1767.         }
  1768.     }
  1769.     PDF_moveto(_arg0,_arg1,_arg2);
  1770.     Py_INCREF(Py_None);
  1771.     _resultobj = Py_None;
  1772.     return _resultobj;
  1773. }
  1774.  
  1775. static PyObject *_wrap_PDF_lineto(PyObject *self, PyObject *args) {
  1776.     PyObject * _resultobj;
  1777.     PDF * _arg0;
  1778.     float  _arg1;
  1779.     float  _arg2;
  1780.     char * _argc0 = 0;
  1781.  
  1782.     self = self;
  1783.     if(!PyArg_ParseTuple(args,"sff:PDF_lineto",&_argc0,&_arg1,&_arg2)) 
  1784.         return NULL;
  1785.     if (_argc0) {
  1786.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  1787.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_lineto. Expected _PDF_p.");
  1788.         return NULL;
  1789.         }
  1790.     }
  1791.     PDF_lineto(_arg0,_arg1,_arg2);
  1792.     Py_INCREF(Py_None);
  1793.     _resultobj = Py_None;
  1794.     return _resultobj;
  1795. }
  1796.  
  1797. static PyObject *_wrap_PDF_curveto(PyObject *self, PyObject *args) {
  1798.     PyObject * _resultobj;
  1799.     PDF * _arg0;
  1800.     float  _arg1;
  1801.     float  _arg2;
  1802.     float  _arg3;
  1803.     float  _arg4;
  1804.     float  _arg5;
  1805.     float  _arg6;
  1806.     char * _argc0 = 0;
  1807.  
  1808.     self = self;
  1809.     if(!PyArg_ParseTuple(args,"sffffff:PDF_curveto",&_argc0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) 
  1810.         return NULL;
  1811.     if (_argc0) {
  1812.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  1813.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_curveto. Expected _PDF_p.");
  1814.         return NULL;
  1815.         }
  1816.     }
  1817.     PDF_curveto(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
  1818.     Py_INCREF(Py_None);
  1819.     _resultobj = Py_None;
  1820.     return _resultobj;
  1821. }
  1822.  
  1823. static PyObject *_wrap_PDF_circle(PyObject *self, PyObject *args) {
  1824.     PyObject * _resultobj;
  1825.     PDF * _arg0;
  1826.     float  _arg1;
  1827.     float  _arg2;
  1828.     float  _arg3;
  1829.     char * _argc0 = 0;
  1830.  
  1831.     self = self;
  1832.     if(!PyArg_ParseTuple(args,"sfff:PDF_circle",&_argc0,&_arg1,&_arg2,&_arg3)) 
  1833.         return NULL;
  1834.     if (_argc0) {
  1835.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  1836.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_circle. Expected _PDF_p.");
  1837.         return NULL;
  1838.         }
  1839.     }
  1840.     PDF_circle(_arg0,_arg1,_arg2,_arg3);
  1841.     Py_INCREF(Py_None);
  1842.     _resultobj = Py_None;
  1843.     return _resultobj;
  1844. }
  1845.  
  1846. static PyObject *_wrap_PDF_arc(PyObject *self, PyObject *args) {
  1847.     PyObject * _resultobj;
  1848.     PDF * _arg0;
  1849.     float  _arg1;
  1850.     float  _arg2;
  1851.     float  _arg3;
  1852.     float  _arg4;
  1853.     float  _arg5;
  1854.     char * _argc0 = 0;
  1855.  
  1856.     self = self;
  1857.     if(!PyArg_ParseTuple(args,"sfffff:PDF_arc",&_argc0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) 
  1858.         return NULL;
  1859.     if (_argc0) {
  1860.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  1861.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_arc. Expected _PDF_p.");
  1862.         return NULL;
  1863.         }
  1864.     }
  1865.     PDF_arc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
  1866.     Py_INCREF(Py_None);
  1867.     _resultobj = Py_None;
  1868.     return _resultobj;
  1869. }
  1870.  
  1871. static PyObject *_wrap_PDF_rect(PyObject *self, PyObject *args) {
  1872.     PyObject * _resultobj;
  1873.     PDF * _arg0;
  1874.     float  _arg1;
  1875.     float  _arg2;
  1876.     float  _arg3;
  1877.     float  _arg4;
  1878.     char * _argc0 = 0;
  1879.  
  1880.     self = self;
  1881.     if(!PyArg_ParseTuple(args,"sffff:PDF_rect",&_argc0,&_arg1,&_arg2,&_arg3,&_arg4)) 
  1882.         return NULL;
  1883.     if (_argc0) {
  1884.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  1885.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_rect. Expected _PDF_p.");
  1886.         return NULL;
  1887.         }
  1888.     }
  1889.     PDF_rect(_arg0,_arg1,_arg2,_arg3,_arg4);
  1890.     Py_INCREF(Py_None);
  1891.     _resultobj = Py_None;
  1892.     return _resultobj;
  1893. }
  1894.  
  1895. static PyObject *_wrap_PDF_closepath(PyObject *self, PyObject *args) {
  1896.     PyObject * _resultobj;
  1897.     PDF * _arg0;
  1898.     char * _argc0 = 0;
  1899.  
  1900.     self = self;
  1901.     if(!PyArg_ParseTuple(args,"s:PDF_closepath",&_argc0)) 
  1902.         return NULL;
  1903.     if (_argc0) {
  1904.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  1905.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_closepath. Expected _PDF_p.");
  1906.         return NULL;
  1907.         }
  1908.     }
  1909.     PDF_closepath(_arg0);
  1910.     Py_INCREF(Py_None);
  1911.     _resultobj = Py_None;
  1912.     return _resultobj;
  1913. }
  1914.  
  1915. static PyObject *_wrap_PDF_stroke(PyObject *self, PyObject *args) {
  1916.     PyObject * _resultobj;
  1917.     PDF * _arg0;
  1918.     char * _argc0 = 0;
  1919.  
  1920.     self = self;
  1921.     if(!PyArg_ParseTuple(args,"s:PDF_stroke",&_argc0)) 
  1922.         return NULL;
  1923.     if (_argc0) {
  1924.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  1925.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_stroke. Expected _PDF_p.");
  1926.         return NULL;
  1927.         }
  1928.     }
  1929.     PDF_stroke(_arg0);
  1930.     Py_INCREF(Py_None);
  1931.     _resultobj = Py_None;
  1932.     return _resultobj;
  1933. }
  1934.  
  1935. static PyObject *_wrap_PDF_closepath_stroke(PyObject *self, PyObject *args) {
  1936.     PyObject * _resultobj;
  1937.     PDF * _arg0;
  1938.     char * _argc0 = 0;
  1939.  
  1940.     self = self;
  1941.     if(!PyArg_ParseTuple(args,"s:PDF_closepath_stroke",&_argc0)) 
  1942.         return NULL;
  1943.     if (_argc0) {
  1944.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  1945.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_closepath_stroke. Expected _PDF_p.");
  1946.         return NULL;
  1947.         }
  1948.     }
  1949.     PDF_closepath_stroke(_arg0);
  1950.     Py_INCREF(Py_None);
  1951.     _resultobj = Py_None;
  1952.     return _resultobj;
  1953. }
  1954.  
  1955. static PyObject *_wrap_PDF_fill(PyObject *self, PyObject *args) {
  1956.     PyObject * _resultobj;
  1957.     PDF * _arg0;
  1958.     char * _argc0 = 0;
  1959.  
  1960.     self = self;
  1961.     if(!PyArg_ParseTuple(args,"s:PDF_fill",&_argc0)) 
  1962.         return NULL;
  1963.     if (_argc0) {
  1964.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  1965.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_fill. Expected _PDF_p.");
  1966.         return NULL;
  1967.         }
  1968.     }
  1969.     PDF_fill(_arg0);
  1970.     Py_INCREF(Py_None);
  1971.     _resultobj = Py_None;
  1972.     return _resultobj;
  1973. }
  1974.  
  1975. static PyObject *_wrap_PDF_fill_stroke(PyObject *self, PyObject *args) {
  1976.     PyObject * _resultobj;
  1977.     PDF * _arg0;
  1978.     char * _argc0 = 0;
  1979.  
  1980.     self = self;
  1981.     if(!PyArg_ParseTuple(args,"s:PDF_fill_stroke",&_argc0)) 
  1982.         return NULL;
  1983.     if (_argc0) {
  1984.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  1985.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_fill_stroke. Expected _PDF_p.");
  1986.         return NULL;
  1987.         }
  1988.     }
  1989.     PDF_fill_stroke(_arg0);
  1990.     Py_INCREF(Py_None);
  1991.     _resultobj = Py_None;
  1992.     return _resultobj;
  1993. }
  1994.  
  1995. static PyObject *_wrap_PDF_closepath_fill_stroke(PyObject *self, PyObject *args) {
  1996.     PyObject * _resultobj;
  1997.     PDF * _arg0;
  1998.     char * _argc0 = 0;
  1999.  
  2000.     self = self;
  2001.     if(!PyArg_ParseTuple(args,"s:PDF_closepath_fill_stroke",&_argc0)) 
  2002.         return NULL;
  2003.     if (_argc0) {
  2004.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  2005.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_closepath_fill_stroke. Expected _PDF_p.");
  2006.         return NULL;
  2007.         }
  2008.     }
  2009.     PDF_closepath_fill_stroke(_arg0);
  2010.     Py_INCREF(Py_None);
  2011.     _resultobj = Py_None;
  2012.     return _resultobj;
  2013. }
  2014.  
  2015. static PyObject *_wrap_PDF_endpath(PyObject *self, PyObject *args) {
  2016.     PyObject * _resultobj;
  2017.     PDF * _arg0;
  2018.     char * _argc0 = 0;
  2019.  
  2020.     self = self;
  2021.     if(!PyArg_ParseTuple(args,"s:PDF_endpath",&_argc0)) 
  2022.         return NULL;
  2023.     if (_argc0) {
  2024.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  2025.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_endpath. Expected _PDF_p.");
  2026.         return NULL;
  2027.         }
  2028.     }
  2029.     PDF_endpath(_arg0);
  2030.     Py_INCREF(Py_None);
  2031.     _resultobj = Py_None;
  2032.     return _resultobj;
  2033. }
  2034.  
  2035. static PyObject *_wrap_PDF_clip(PyObject *self, PyObject *args) {
  2036.     PyObject * _resultobj;
  2037.     PDF * _arg0;
  2038.     char * _argc0 = 0;
  2039.  
  2040.     self = self;
  2041.     if(!PyArg_ParseTuple(args,"s:PDF_clip",&_argc0)) 
  2042.         return NULL;
  2043.     if (_argc0) {
  2044.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  2045.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_clip. Expected _PDF_p.");
  2046.         return NULL;
  2047.         }
  2048.     }
  2049.     PDF_clip(_arg0);
  2050.     Py_INCREF(Py_None);
  2051.     _resultobj = Py_None;
  2052.     return _resultobj;
  2053. }
  2054.  
  2055. static PyObject *_wrap_PDF_place_image(PyObject *self, PyObject *args) {
  2056.     PyObject * _resultobj;
  2057.     PDF * _arg0;
  2058.     PDF_image * _arg1;
  2059.     float  _arg2;
  2060.     float  _arg3;
  2061.     float  _arg4;
  2062.     char * _argc0 = 0;
  2063.     char * _argc1 = 0;
  2064.  
  2065.     self = self;
  2066.     if(!PyArg_ParseTuple(args,"ssfff:PDF_place_image",&_argc0,&_argc1,&_arg2,&_arg3,&_arg4)) 
  2067.         return NULL;
  2068.     if (_argc0) {
  2069.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  2070.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_place_image. Expected _PDF_p.");
  2071.         return NULL;
  2072.         }
  2073.     }
  2074.     if (_argc1) {
  2075.         if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_PDF_image_p")) {
  2076.             PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of PDF_place_image. Expected _PDF_image_p.");
  2077.         return NULL;
  2078.         }
  2079.     }
  2080.     PDF_place_image(_arg0,_arg1,_arg2,_arg3,_arg4);
  2081.     Py_INCREF(Py_None);
  2082.     _resultobj = Py_None;
  2083.     return _resultobj;
  2084. }
  2085.  
  2086. static PyObject *_wrap_PDF_place_inline_image(PyObject *self, PyObject *args) {
  2087.     PyObject * _resultobj;
  2088.     PDF * _arg0;
  2089.     PDF_image * _arg1;
  2090.     float  _arg2;
  2091.     float  _arg3;
  2092.     float  _arg4;
  2093.     char * _argc0 = 0;
  2094.     char * _argc1 = 0;
  2095.  
  2096.     self = self;
  2097.     if(!PyArg_ParseTuple(args,"ssfff:PDF_place_inline_image",&_argc0,&_argc1,&_arg2,&_arg3,&_arg4)) 
  2098.         return NULL;
  2099.     if (_argc0) {
  2100.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  2101.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_place_inline_image. Expected _PDF_p.");
  2102.         return NULL;
  2103.         }
  2104.     }
  2105.     if (_argc1) {
  2106.         if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_PDF_image_p")) {
  2107.             PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of PDF_place_inline_image. Expected _PDF_image_p.");
  2108.         return NULL;
  2109.         }
  2110.     }
  2111.     PDF_place_inline_image(_arg0,_arg1,_arg2,_arg3,_arg4);
  2112.     Py_INCREF(Py_None);
  2113.     _resultobj = Py_None;
  2114.     return _resultobj;
  2115. }
  2116.  
  2117. static PyObject *_wrap_PDF_put_image(PyObject *self, PyObject *args) {
  2118.     PyObject * _resultobj;
  2119.     PDF * _arg0;
  2120.     PDF_image * _arg1;
  2121.     char * _argc0 = 0;
  2122.     char * _argc1 = 0;
  2123.  
  2124.     self = self;
  2125.     if(!PyArg_ParseTuple(args,"ss:PDF_put_image",&_argc0,&_argc1)) 
  2126.         return NULL;
  2127.     if (_argc0) {
  2128.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  2129.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_put_image. Expected _PDF_p.");
  2130.         return NULL;
  2131.         }
  2132.     }
  2133.     if (_argc1) {
  2134.         if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_PDF_image_p")) {
  2135.             PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of PDF_put_image. Expected _PDF_image_p.");
  2136.         return NULL;
  2137.         }
  2138.     }
  2139.     PDF_put_image(_arg0,_arg1);
  2140.     Py_INCREF(Py_None);
  2141.     _resultobj = Py_None;
  2142.     return _resultobj;
  2143. }
  2144.  
  2145. static PyObject *_wrap_PDF_execute_image(PyObject *self, PyObject *args) {
  2146.     PyObject * _resultobj;
  2147.     PDF * _arg0;
  2148.     PDF_image * _arg1;
  2149.     float  _arg2;
  2150.     float  _arg3;
  2151.     float  _arg4;
  2152.     char * _argc0 = 0;
  2153.     char * _argc1 = 0;
  2154.  
  2155.     self = self;
  2156.     if(!PyArg_ParseTuple(args,"ssfff:PDF_execute_image",&_argc0,&_argc1,&_arg2,&_arg3,&_arg4)) 
  2157.         return NULL;
  2158.     if (_argc0) {
  2159.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  2160.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_execute_image. Expected _PDF_p.");
  2161.         return NULL;
  2162.         }
  2163.     }
  2164.     if (_argc1) {
  2165.         if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_PDF_image_p")) {
  2166.             PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of PDF_execute_image. Expected _PDF_image_p.");
  2167.         return NULL;
  2168.         }
  2169.     }
  2170.     PDF_execute_image(_arg0,_arg1,_arg2,_arg3,_arg4);
  2171.     Py_INCREF(Py_None);
  2172.     _resultobj = Py_None;
  2173.     return _resultobj;
  2174. }
  2175.  
  2176. static PyObject *_wrap_PDF_close_image(PyObject *self, PyObject *args) {
  2177.     PyObject * _resultobj;
  2178.     PDF * _arg0;
  2179.     PDF_image * _arg1;
  2180.     char * _argc0 = 0;
  2181.     char * _argc1 = 0;
  2182.  
  2183.     self = self;
  2184.     if(!PyArg_ParseTuple(args,"ss:PDF_close_image",&_argc0,&_argc1)) 
  2185.         return NULL;
  2186.     if (_argc0) {
  2187.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  2188.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_close_image. Expected _PDF_p.");
  2189.         return NULL;
  2190.         }
  2191.     }
  2192.     if (_argc1) {
  2193.         if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_PDF_image_p")) {
  2194.             PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of PDF_close_image. Expected _PDF_image_p.");
  2195.         return NULL;
  2196.         }
  2197.     }
  2198.     PDF_close_image(_arg0,_arg1);
  2199.     Py_INCREF(Py_None);
  2200.     _resultobj = Py_None;
  2201.     return _resultobj;
  2202. }
  2203.  
  2204. static PyObject *_wrap_PDF_open_JPEG(PyObject *self, PyObject *args) {
  2205.     PyObject * _resultobj;
  2206.     PDF_image * _result;
  2207.     PDF * _arg0;
  2208.     char * _arg1;
  2209.     char * _argc0 = 0;
  2210.     char _ptemp[128];
  2211.  
  2212.     self = self;
  2213.     if(!PyArg_ParseTuple(args,"ss:PDF_open_JPEG",&_argc0,&_arg1)) 
  2214.         return NULL;
  2215.     if (_argc0) {
  2216.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  2217.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_open_JPEG. Expected _PDF_p.");
  2218.         return NULL;
  2219.         }
  2220.     }
  2221.     _result = (PDF_image *)PDF_open_JPEG(_arg0,_arg1);
  2222.     SWIG_MakePtr(_ptemp, (char *) _result,"_PDF_image_p");
  2223.     _resultobj = Py_BuildValue("s",_ptemp);
  2224.     return _resultobj;
  2225. }
  2226.  
  2227. static PyObject *_wrap_PDF_close_JPEG(PyObject *self, PyObject *args) {
  2228.     PyObject * _resultobj;
  2229.     PDF * _arg0;
  2230.     PDF_image * _arg1;
  2231.     char * _argc0 = 0;
  2232.     char * _argc1 = 0;
  2233.  
  2234.     self = self;
  2235.     if(!PyArg_ParseTuple(args,"ss:PDF_close_JPEG",&_argc0,&_argc1)) 
  2236.         return NULL;
  2237.     if (_argc0) {
  2238.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  2239.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_close_JPEG. Expected _PDF_p.");
  2240.         return NULL;
  2241.         }
  2242.     }
  2243.     if (_argc1) {
  2244.         if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_PDF_image_p")) {
  2245.             PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of PDF_close_JPEG. Expected _PDF_image_p.");
  2246.         return NULL;
  2247.         }
  2248.     }
  2249.     PDF_close_JPEG(_arg0,_arg1);
  2250.     Py_INCREF(Py_None);
  2251.     _resultobj = Py_None;
  2252.     return _resultobj;
  2253. }
  2254.  
  2255. static PyObject *_wrap_PDF_open_TIFF(PyObject *self, PyObject *args) {
  2256.     PyObject * _resultobj;
  2257.     PDF_image * _result;
  2258.     PDF * _arg0;
  2259.     char * _arg1;
  2260.     char * _argc0 = 0;
  2261.     char _ptemp[128];
  2262.  
  2263.     self = self;
  2264.     if(!PyArg_ParseTuple(args,"ss:PDF_open_TIFF",&_argc0,&_arg1)) 
  2265.         return NULL;
  2266.     if (_argc0) {
  2267.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  2268.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_open_TIFF. Expected _PDF_p.");
  2269.         return NULL;
  2270.         }
  2271.     }
  2272.     _result = (PDF_image *)PDF_open_TIFF(_arg0,_arg1);
  2273.     SWIG_MakePtr(_ptemp, (char *) _result,"_PDF_image_p");
  2274.     _resultobj = Py_BuildValue("s",_ptemp);
  2275.     return _resultobj;
  2276. }
  2277.  
  2278. static PyObject *_wrap_PDF_close_TIFF(PyObject *self, PyObject *args) {
  2279.     PyObject * _resultobj;
  2280.     PDF * _arg0;
  2281.     PDF_image * _arg1;
  2282.     char * _argc0 = 0;
  2283.     char * _argc1 = 0;
  2284.  
  2285.     self = self;
  2286.     if(!PyArg_ParseTuple(args,"ss:PDF_close_TIFF",&_argc0,&_argc1)) 
  2287.         return NULL;
  2288.     if (_argc0) {
  2289.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  2290.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_close_TIFF. Expected _PDF_p.");
  2291.         return NULL;
  2292.         }
  2293.     }
  2294.     if (_argc1) {
  2295.         if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_PDF_image_p")) {
  2296.             PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of PDF_close_TIFF. Expected _PDF_image_p.");
  2297.         return NULL;
  2298.         }
  2299.     }
  2300.     PDF_close_TIFF(_arg0,_arg1);
  2301.     Py_INCREF(Py_None);
  2302.     _resultobj = Py_None;
  2303.     return _resultobj;
  2304. }
  2305.  
  2306. static PyObject *_wrap_PDF_open_GIF(PyObject *self, PyObject *args) {
  2307.     PyObject * _resultobj;
  2308.     PDF_image * _result;
  2309.     PDF * _arg0;
  2310.     char * _arg1;
  2311.     char * _argc0 = 0;
  2312.     char _ptemp[128];
  2313.  
  2314.     self = self;
  2315.     if(!PyArg_ParseTuple(args,"ss:PDF_open_GIF",&_argc0,&_arg1)) 
  2316.         return NULL;
  2317.     if (_argc0) {
  2318.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  2319.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_open_GIF. Expected _PDF_p.");
  2320.         return NULL;
  2321.         }
  2322.     }
  2323.     _result = (PDF_image *)PDF_open_GIF(_arg0,_arg1);
  2324.     SWIG_MakePtr(_ptemp, (char *) _result,"_PDF_image_p");
  2325.     _resultobj = Py_BuildValue("s",_ptemp);
  2326.     return _resultobj;
  2327. }
  2328.  
  2329. static PyObject *_wrap_PDF_close_GIF(PyObject *self, PyObject *args) {
  2330.     PyObject * _resultobj;
  2331.     PDF * _arg0;
  2332.     PDF_image * _arg1;
  2333.     char * _argc0 = 0;
  2334.     char * _argc1 = 0;
  2335.  
  2336.     self = self;
  2337.     if(!PyArg_ParseTuple(args,"ss:PDF_close_GIF",&_argc0,&_argc1)) 
  2338.         return NULL;
  2339.     if (_argc0) {
  2340.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  2341.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_close_GIF. Expected _PDF_p.");
  2342.         return NULL;
  2343.         }
  2344.     }
  2345.     if (_argc1) {
  2346.         if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_PDF_image_p")) {
  2347.             PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of PDF_close_GIF. Expected _PDF_image_p.");
  2348.         return NULL;
  2349.         }
  2350.     }
  2351.     PDF_close_GIF(_arg0,_arg1);
  2352.     Py_INCREF(Py_None);
  2353.     _resultobj = Py_None;
  2354.     return _resultobj;
  2355. }
  2356.  
  2357. static PyObject *_wrap_PDF_data_source_from_buf(PyObject *self, PyObject *args) {
  2358.     PyObject * _resultobj;
  2359.     PDF * _arg0;
  2360.     PDF_data_source * _arg1;
  2361.     byte * _arg2;
  2362.     long  _arg3;
  2363.     char * _argc0 = 0;
  2364.     char * _argc1 = 0;
  2365.     char * _argc2 = 0;
  2366.  
  2367.     self = self;
  2368.     if(!PyArg_ParseTuple(args,"sssl:PDF_data_source_from_buf",&_argc0,&_argc1,&_argc2,&_arg3)) 
  2369.         return NULL;
  2370.     if (_argc0) {
  2371.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  2372.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_data_source_from_buf. Expected _PDF_p.");
  2373.         return NULL;
  2374.         }
  2375.     }
  2376.     if (_argc1) {
  2377.         if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_PDF_data_source_p")) {
  2378.             PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of PDF_data_source_from_buf. Expected _PDF_data_source_p.");
  2379.         return NULL;
  2380.         }
  2381.     }
  2382.     if (_argc2) {
  2383.         if (SWIG_GetPtr(_argc2,(void **) &_arg2,"_byte_p")) {
  2384.             PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of PDF_data_source_from_buf. Expected _byte_p.");
  2385.         return NULL;
  2386.         }
  2387.     }
  2388.     PDF_data_source_from_buf(_arg0,_arg1,_arg2,_arg3);
  2389.     Py_INCREF(Py_None);
  2390.     _resultobj = Py_None;
  2391.     return _resultobj;
  2392. }
  2393.  
  2394. static PyObject *_wrap_PDF_stringwidth(PyObject *self, PyObject *args) {
  2395.     PyObject * _resultobj;
  2396.     float  _result;
  2397.     PDF * _arg0;
  2398.     byte * _arg1;
  2399.     char * _argc0 = 0;
  2400.     char * _argc1 = 0;
  2401.  
  2402.     self = self;
  2403.     if(!PyArg_ParseTuple(args,"ss:PDF_stringwidth",&_argc0,&_argc1)) 
  2404.         return NULL;
  2405.     if (_argc0) {
  2406.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  2407.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_stringwidth. Expected _PDF_p.");
  2408.         return NULL;
  2409.         }
  2410.     }
  2411.     if (_argc1) {
  2412.         if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_byte_p")) {
  2413.             PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of PDF_stringwidth. Expected _byte_p.");
  2414.         return NULL;
  2415.         }
  2416.     }
  2417.     _result = (float )PDF_stringwidth(_arg0,_arg1);
  2418.     _resultobj = Py_BuildValue("f",_result);
  2419.     return _resultobj;
  2420. }
  2421.  
  2422. static PyObject *_wrap_PDF_add_outline(PyObject *self, PyObject *args) {
  2423.     PyObject * _resultobj;
  2424.     PDF * _arg0;
  2425.     char * _arg1;
  2426.     char * _argc0 = 0;
  2427.  
  2428.     self = self;
  2429.     if(!PyArg_ParseTuple(args,"ss:PDF_add_outline",&_argc0,&_arg1)) 
  2430.         return NULL;
  2431.     if (_argc0) {
  2432.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_p")) {
  2433.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_add_outline. Expected _PDF_p.");
  2434.         return NULL;
  2435.         }
  2436.     }
  2437.     PDF_add_outline(_arg0,_arg1);
  2438.     Py_INCREF(Py_None);
  2439.     _resultobj = Py_None;
  2440.     return _resultobj;
  2441. }
  2442.  
  2443. static PyObject *_wrap_fopen(PyObject *self, PyObject *args) {
  2444.     PyObject * _resultobj;
  2445.     FILE * _result;
  2446.     char * _arg0;
  2447.     char * _arg1;
  2448.     char _ptemp[128];
  2449.  
  2450.     self = self;
  2451.     if(!PyArg_ParseTuple(args,"ss:fopen",&_arg0,&_arg1)) 
  2452.         return NULL;
  2453.     _result = (FILE *)fopen(_arg0,_arg1);
  2454.     SWIG_MakePtr(_ptemp, (char *) _result,"_FILE_p");
  2455.     _resultobj = Py_BuildValue("s",_ptemp);
  2456.     return _resultobj;
  2457. }
  2458.  
  2459. static PyObject *_wrap_fclose(PyObject *self, PyObject *args) {
  2460.     PyObject * _resultobj;
  2461.     FILE * _arg0;
  2462.     char * _argc0 = 0;
  2463.  
  2464.     self = self;
  2465.     if(!PyArg_ParseTuple(args,"s:fclose",&_argc0)) 
  2466.         return NULL;
  2467.     if (_argc0) {
  2468.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_FILE_p")) {
  2469.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of fclose. Expected _FILE_p.");
  2470.         return NULL;
  2471.         }
  2472.     }
  2473.     fclose(_arg0);
  2474.     Py_INCREF(Py_None);
  2475.     _resultobj = Py_None;
  2476.     return _resultobj;
  2477. }
  2478.  
  2479. #define PDF_pagesize_width_set(_swigobj,_swigval) (_swigobj->width = _swigval,_swigval)
  2480. static PyObject *_wrap_PDF_pagesize_width_set(PyObject *self, PyObject *args) {
  2481.     PyObject * _resultobj;
  2482.     float  _result;
  2483.     PDF_pagesize * _arg0;
  2484.     float  _arg1;
  2485.     char * _argc0 = 0;
  2486.  
  2487.     self = self;
  2488.     if(!PyArg_ParseTuple(args,"sf:PDF_pagesize_width_set",&_argc0,&_arg1)) 
  2489.         return NULL;
  2490.     if (_argc0) {
  2491.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_pagesize_p")) {
  2492.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_pagesize_width_set. Expected _PDF_pagesize_p.");
  2493.         return NULL;
  2494.         }
  2495.     }
  2496.     _result = (float )PDF_pagesize_width_set(_arg0,_arg1);
  2497.     _resultobj = Py_BuildValue("f",_result);
  2498.     return _resultobj;
  2499. }
  2500.  
  2501. #define PDF_pagesize_width_get(_swigobj) ((float ) _swigobj->width)
  2502. static PyObject *_wrap_PDF_pagesize_width_get(PyObject *self, PyObject *args) {
  2503.     PyObject * _resultobj;
  2504.     float  _result;
  2505.     PDF_pagesize * _arg0;
  2506.     char * _argc0 = 0;
  2507.  
  2508.     self = self;
  2509.     if(!PyArg_ParseTuple(args,"s:PDF_pagesize_width_get",&_argc0)) 
  2510.         return NULL;
  2511.     if (_argc0) {
  2512.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_pagesize_p")) {
  2513.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_pagesize_width_get. Expected _PDF_pagesize_p.");
  2514.         return NULL;
  2515.         }
  2516.     }
  2517.     _result = (float )PDF_pagesize_width_get(_arg0);
  2518.     _resultobj = Py_BuildValue("f",_result);
  2519.     return _resultobj;
  2520. }
  2521.  
  2522. #define PDF_pagesize_height_set(_swigobj,_swigval) (_swigobj->height = _swigval,_swigval)
  2523. static PyObject *_wrap_PDF_pagesize_height_set(PyObject *self, PyObject *args) {
  2524.     PyObject * _resultobj;
  2525.     float  _result;
  2526.     PDF_pagesize * _arg0;
  2527.     float  _arg1;
  2528.     char * _argc0 = 0;
  2529.  
  2530.     self = self;
  2531.     if(!PyArg_ParseTuple(args,"sf:PDF_pagesize_height_set",&_argc0,&_arg1)) 
  2532.         return NULL;
  2533.     if (_argc0) {
  2534.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_pagesize_p")) {
  2535.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_pagesize_height_set. Expected _PDF_pagesize_p.");
  2536.         return NULL;
  2537.         }
  2538.     }
  2539.     _result = (float )PDF_pagesize_height_set(_arg0,_arg1);
  2540.     _resultobj = Py_BuildValue("f",_result);
  2541.     return _resultobj;
  2542. }
  2543.  
  2544. #define PDF_pagesize_height_get(_swigobj) ((float ) _swigobj->height)
  2545. static PyObject *_wrap_PDF_pagesize_height_get(PyObject *self, PyObject *args) {
  2546.     PyObject * _resultobj;
  2547.     float  _result;
  2548.     PDF_pagesize * _arg0;
  2549.     char * _argc0 = 0;
  2550.  
  2551.     self = self;
  2552.     if(!PyArg_ParseTuple(args,"s:PDF_pagesize_height_get",&_argc0)) 
  2553.         return NULL;
  2554.     if (_argc0) {
  2555.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_pagesize_p")) {
  2556.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_pagesize_height_get. Expected _PDF_pagesize_p.");
  2557.         return NULL;
  2558.         }
  2559.     }
  2560.     _result = (float )PDF_pagesize_height_get(_arg0);
  2561.     _resultobj = Py_BuildValue("f",_result);
  2562.     return _resultobj;
  2563. }
  2564.  
  2565. #define PDF_info_binary_mode_set(_swigobj,_swigval) (_swigobj->binary_mode = _swigval,_swigval)
  2566. static PyObject *_wrap_PDF_info_binary_mode_set(PyObject *self, PyObject *args) {
  2567.     PyObject * _resultobj;
  2568.     bool  _result;
  2569.     PDF_info * _arg0;
  2570.     bool  _arg1;
  2571.     char * _argc0 = 0;
  2572.     int tempbool1;
  2573.  
  2574.     self = self;
  2575.     if(!PyArg_ParseTuple(args,"si:PDF_info_binary_mode_set",&_argc0,&tempbool1)) 
  2576.         return NULL;
  2577.     if (_argc0) {
  2578.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_info_p")) {
  2579.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_info_binary_mode_set. Expected _PDF_info_p.");
  2580.         return NULL;
  2581.         }
  2582.     }
  2583.     _arg1 = (bool ) tempbool1;
  2584.     _result = (bool )PDF_info_binary_mode_set(_arg0,_arg1);
  2585.     _resultobj = Py_BuildValue("i",_result);
  2586.     return _resultobj;
  2587. }
  2588.  
  2589. #define PDF_info_binary_mode_get(_swigobj) ((bool ) _swigobj->binary_mode)
  2590. static PyObject *_wrap_PDF_info_binary_mode_get(PyObject *self, PyObject *args) {
  2591.     PyObject * _resultobj;
  2592.     bool  _result;
  2593.     PDF_info * _arg0;
  2594.     char * _argc0 = 0;
  2595.  
  2596.     self = self;
  2597.     if(!PyArg_ParseTuple(args,"s:PDF_info_binary_mode_get",&_argc0)) 
  2598.         return NULL;
  2599.     if (_argc0) {
  2600.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_info_p")) {
  2601.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_info_binary_mode_get. Expected _PDF_info_p.");
  2602.         return NULL;
  2603.         }
  2604.     }
  2605.     _result = (bool )PDF_info_binary_mode_get(_arg0);
  2606.     _resultobj = Py_BuildValue("i",_result);
  2607.     return _resultobj;
  2608. }
  2609.  
  2610. #define PDF_info_required_compatibility_set(_swigobj,_swigval) (_swigobj->required_compatibility = _swigval,_swigval)
  2611. static PyObject *_wrap_PDF_info_required_compatibility_set(PyObject *self, PyObject *args) {
  2612.     PyObject * _resultobj;
  2613.     PDF_compat_mode  _result;
  2614.     PDF_info * _arg0;
  2615.     PDF_compat_mode  _arg1;
  2616.     char * _argc0 = 0;
  2617.  
  2618.     self = self;
  2619.     if(!PyArg_ParseTuple(args,"si:PDF_info_required_compatibility_set",&_argc0,&_arg1)) 
  2620.         return NULL;
  2621.     if (_argc0) {
  2622.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_info_p")) {
  2623.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_info_required_compatibility_set. Expected _PDF_info_p.");
  2624.         return NULL;
  2625.         }
  2626.     }
  2627.     _result = (PDF_compat_mode )PDF_info_required_compatibility_set(_arg0,_arg1);
  2628.     _resultobj = Py_BuildValue("i",_result);
  2629.     return _resultobj;
  2630. }
  2631.  
  2632. #define PDF_info_required_compatibility_get(_swigobj) ((PDF_compat_mode ) _swigobj->required_compatibility)
  2633. static PyObject *_wrap_PDF_info_required_compatibility_get(PyObject *self, PyObject *args) {
  2634.     PyObject * _resultobj;
  2635.     PDF_compat_mode  _result;
  2636.     PDF_info * _arg0;
  2637.     char * _argc0 = 0;
  2638.  
  2639.     self = self;
  2640.     if(!PyArg_ParseTuple(args,"s:PDF_info_required_compatibility_get",&_argc0)) 
  2641.         return NULL;
  2642.     if (_argc0) {
  2643.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_info_p")) {
  2644.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_info_required_compatibility_get. Expected _PDF_info_p.");
  2645.         return NULL;
  2646.         }
  2647.     }
  2648.     _result = (PDF_compat_mode )PDF_info_required_compatibility_get(_arg0);
  2649.     _resultobj = Py_BuildValue("i",_result);
  2650.     return _resultobj;
  2651. }
  2652.  
  2653. static char * PDF_info_Keywords_set(PDF_info *obj, char *val) {
  2654.     if (obj->Keywords) free(obj->Keywords);
  2655.     obj->Keywords = (char *) malloc(strlen(val)+1);
  2656.     strcpy(obj->Keywords,val);
  2657.     return val;
  2658. }
  2659. static PyObject *_wrap_PDF_info_Keywords_set(PyObject *self, PyObject *args) {
  2660.     PyObject * _resultobj;
  2661.     char * _result;
  2662.     PDF_info * _arg0;
  2663.     char * _arg1;
  2664.     char * _argc0 = 0;
  2665.  
  2666.     self = self;
  2667.     if(!PyArg_ParseTuple(args,"ss:PDF_info_Keywords_set",&_argc0,&_arg1)) 
  2668.         return NULL;
  2669.     if (_argc0) {
  2670.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_info_p")) {
  2671.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_info_Keywords_set. Expected _PDF_info_p.");
  2672.         return NULL;
  2673.         }
  2674.     }
  2675.     _result = (char *)PDF_info_Keywords_set(_arg0,_arg1);
  2676.     _resultobj = Py_BuildValue("s", _result);
  2677.     return _resultobj;
  2678. }
  2679.  
  2680. #define PDF_info_Keywords_get(_swigobj) ((char *) _swigobj->Keywords)
  2681. static PyObject *_wrap_PDF_info_Keywords_get(PyObject *self, PyObject *args) {
  2682.     PyObject * _resultobj;
  2683.     char * _result;
  2684.     PDF_info * _arg0;
  2685.     char * _argc0 = 0;
  2686.  
  2687.     self = self;
  2688.     if(!PyArg_ParseTuple(args,"s:PDF_info_Keywords_get",&_argc0)) 
  2689.         return NULL;
  2690.     if (_argc0) {
  2691.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_info_p")) {
  2692.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_info_Keywords_get. Expected _PDF_info_p.");
  2693.         return NULL;
  2694.         }
  2695.     }
  2696.     _result = (char *)PDF_info_Keywords_get(_arg0);
  2697.     _resultobj = Py_BuildValue("s", _result);
  2698.     return _resultobj;
  2699. }
  2700.  
  2701. static char * PDF_info_Subject_set(PDF_info *obj, char *val) {
  2702.     if (obj->Subject) free(obj->Subject);
  2703.     obj->Subject = (char *) malloc(strlen(val)+1);
  2704.     strcpy(obj->Subject,val);
  2705.     return val;
  2706. }
  2707. static PyObject *_wrap_PDF_info_Subject_set(PyObject *self, PyObject *args) {
  2708.     PyObject * _resultobj;
  2709.     char * _result;
  2710.     PDF_info * _arg0;
  2711.     char * _arg1;
  2712.     char * _argc0 = 0;
  2713.  
  2714.     self = self;
  2715.     if(!PyArg_ParseTuple(args,"ss:PDF_info_Subject_set",&_argc0,&_arg1)) 
  2716.         return NULL;
  2717.     if (_argc0) {
  2718.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_info_p")) {
  2719.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_info_Subject_set. Expected _PDF_info_p.");
  2720.         return NULL;
  2721.         }
  2722.     }
  2723.     _result = (char *)PDF_info_Subject_set(_arg0,_arg1);
  2724.     _resultobj = Py_BuildValue("s", _result);
  2725.     return _resultobj;
  2726. }
  2727.  
  2728. #define PDF_info_Subject_get(_swigobj) ((char *) _swigobj->Subject)
  2729. static PyObject *_wrap_PDF_info_Subject_get(PyObject *self, PyObject *args) {
  2730.     PyObject * _resultobj;
  2731.     char * _result;
  2732.     PDF_info * _arg0;
  2733.     char * _argc0 = 0;
  2734.  
  2735.     self = self;
  2736.     if(!PyArg_ParseTuple(args,"s:PDF_info_Subject_get",&_argc0)) 
  2737.         return NULL;
  2738.     if (_argc0) {
  2739.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_info_p")) {
  2740.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_info_Subject_get. Expected _PDF_info_p.");
  2741.         return NULL;
  2742.         }
  2743.     }
  2744.     _result = (char *)PDF_info_Subject_get(_arg0);
  2745.     _resultobj = Py_BuildValue("s", _result);
  2746.     return _resultobj;
  2747. }
  2748.  
  2749. static char * PDF_info_ModDate_set(PDF_info *obj, char *val) {
  2750.     if (obj->ModDate) free(obj->ModDate);
  2751.     obj->ModDate = (char *) malloc(strlen(val)+1);
  2752.     strcpy(obj->ModDate,val);
  2753.     return val;
  2754. }
  2755. static PyObject *_wrap_PDF_info_ModDate_set(PyObject *self, PyObject *args) {
  2756.     PyObject * _resultobj;
  2757.     char * _result;
  2758.     PDF_info * _arg0;
  2759.     char * _arg1;
  2760.     char * _argc0 = 0;
  2761.  
  2762.     self = self;
  2763.     if(!PyArg_ParseTuple(args,"ss:PDF_info_ModDate_set",&_argc0,&_arg1)) 
  2764.         return NULL;
  2765.     if (_argc0) {
  2766.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_info_p")) {
  2767.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_info_ModDate_set. Expected _PDF_info_p.");
  2768.         return NULL;
  2769.         }
  2770.     }
  2771.     _result = (char *)PDF_info_ModDate_set(_arg0,_arg1);
  2772.     _resultobj = Py_BuildValue("s", _result);
  2773.     return _resultobj;
  2774. }
  2775.  
  2776. #define PDF_info_ModDate_get(_swigobj) ((char *) _swigobj->ModDate)
  2777. static PyObject *_wrap_PDF_info_ModDate_get(PyObject *self, PyObject *args) {
  2778.     PyObject * _resultobj;
  2779.     char * _result;
  2780.     PDF_info * _arg0;
  2781.     char * _argc0 = 0;
  2782.  
  2783.     self = self;
  2784.     if(!PyArg_ParseTuple(args,"s:PDF_info_ModDate_get",&_argc0)) 
  2785.         return NULL;
  2786.     if (_argc0) {
  2787.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_info_p")) {
  2788.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_info_ModDate_get. Expected _PDF_info_p.");
  2789.         return NULL;
  2790.         }
  2791.     }
  2792.     _result = (char *)PDF_info_ModDate_get(_arg0);
  2793.     _resultobj = Py_BuildValue("s", _result);
  2794.     return _resultobj;
  2795. }
  2796.  
  2797. static char * PDF_info_Title_set(PDF_info *obj, char *val) {
  2798.     if (obj->Title) free(obj->Title);
  2799.     obj->Title = (char *) malloc(strlen(val)+1);
  2800.     strcpy(obj->Title,val);
  2801.     return val;
  2802. }
  2803. static PyObject *_wrap_PDF_info_Title_set(PyObject *self, PyObject *args) {
  2804.     PyObject * _resultobj;
  2805.     char * _result;
  2806.     PDF_info * _arg0;
  2807.     char * _arg1;
  2808.     char * _argc0 = 0;
  2809.  
  2810.     self = self;
  2811.     if(!PyArg_ParseTuple(args,"ss:PDF_info_Title_set",&_argc0,&_arg1)) 
  2812.         return NULL;
  2813.     if (_argc0) {
  2814.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_info_p")) {
  2815.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_info_Title_set. Expected _PDF_info_p.");
  2816.         return NULL;
  2817.         }
  2818.     }
  2819.     _result = (char *)PDF_info_Title_set(_arg0,_arg1);
  2820.     _resultobj = Py_BuildValue("s", _result);
  2821.     return _resultobj;
  2822. }
  2823.  
  2824. #define PDF_info_Title_get(_swigobj) ((char *) _swigobj->Title)
  2825. static PyObject *_wrap_PDF_info_Title_get(PyObject *self, PyObject *args) {
  2826.     PyObject * _resultobj;
  2827.     char * _result;
  2828.     PDF_info * _arg0;
  2829.     char * _argc0 = 0;
  2830.  
  2831.     self = self;
  2832.     if(!PyArg_ParseTuple(args,"s:PDF_info_Title_get",&_argc0)) 
  2833.         return NULL;
  2834.     if (_argc0) {
  2835.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_info_p")) {
  2836.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_info_Title_get. Expected _PDF_info_p.");
  2837.         return NULL;
  2838.         }
  2839.     }
  2840.     _result = (char *)PDF_info_Title_get(_arg0);
  2841.     _resultobj = Py_BuildValue("s", _result);
  2842.     return _resultobj;
  2843. }
  2844.  
  2845. static char * PDF_info_CreationDate_set(PDF_info *obj, char *val) {
  2846.     if (obj->CreationDate) free(obj->CreationDate);
  2847.     obj->CreationDate = (char *) malloc(strlen(val)+1);
  2848.     strcpy(obj->CreationDate,val);
  2849.     return val;
  2850. }
  2851. static PyObject *_wrap_PDF_info_CreationDate_set(PyObject *self, PyObject *args) {
  2852.     PyObject * _resultobj;
  2853.     char * _result;
  2854.     PDF_info * _arg0;
  2855.     char * _arg1;
  2856.     char * _argc0 = 0;
  2857.  
  2858.     self = self;
  2859.     if(!PyArg_ParseTuple(args,"ss:PDF_info_CreationDate_set",&_argc0,&_arg1)) 
  2860.         return NULL;
  2861.     if (_argc0) {
  2862.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_info_p")) {
  2863.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_info_CreationDate_set. Expected _PDF_info_p.");
  2864.         return NULL;
  2865.         }
  2866.     }
  2867.     _result = (char *)PDF_info_CreationDate_set(_arg0,_arg1);
  2868.     _resultobj = Py_BuildValue("s", _result);
  2869.     return _resultobj;
  2870. }
  2871.  
  2872. #define PDF_info_CreationDate_get(_swigobj) ((char *) _swigobj->CreationDate)
  2873. static PyObject *_wrap_PDF_info_CreationDate_get(PyObject *self, PyObject *args) {
  2874.     PyObject * _resultobj;
  2875.     char * _result;
  2876.     PDF_info * _arg0;
  2877.     char * _argc0 = 0;
  2878.  
  2879.     self = self;
  2880.     if(!PyArg_ParseTuple(args,"s:PDF_info_CreationDate_get",&_argc0)) 
  2881.         return NULL;
  2882.     if (_argc0) {
  2883.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_info_p")) {
  2884.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_info_CreationDate_get. Expected _PDF_info_p.");
  2885.         return NULL;
  2886.         }
  2887.     }
  2888.     _result = (char *)PDF_info_CreationDate_get(_arg0);
  2889.     _resultobj = Py_BuildValue("s", _result);
  2890.     return _resultobj;
  2891. }
  2892.  
  2893. static char * PDF_info_Creator_set(PDF_info *obj, char *val) {
  2894.     if (obj->Creator) free(obj->Creator);
  2895.     obj->Creator = (char *) malloc(strlen(val)+1);
  2896.     strcpy(obj->Creator,val);
  2897.     return val;
  2898. }
  2899. static PyObject *_wrap_PDF_info_Creator_set(PyObject *self, PyObject *args) {
  2900.     PyObject * _resultobj;
  2901.     char * _result;
  2902.     PDF_info * _arg0;
  2903.     char * _arg1;
  2904.     char * _argc0 = 0;
  2905.  
  2906.     self = self;
  2907.     if(!PyArg_ParseTuple(args,"ss:PDF_info_Creator_set",&_argc0,&_arg1)) 
  2908.         return NULL;
  2909.     if (_argc0) {
  2910.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_info_p")) {
  2911.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_info_Creator_set. Expected _PDF_info_p.");
  2912.         return NULL;
  2913.         }
  2914.     }
  2915.     _result = (char *)PDF_info_Creator_set(_arg0,_arg1);
  2916.     _resultobj = Py_BuildValue("s", _result);
  2917.     return _resultobj;
  2918. }
  2919.  
  2920. #define PDF_info_Creator_get(_swigobj) ((char *) _swigobj->Creator)
  2921. static PyObject *_wrap_PDF_info_Creator_get(PyObject *self, PyObject *args) {
  2922.     PyObject * _resultobj;
  2923.     char * _result;
  2924.     PDF_info * _arg0;
  2925.     char * _argc0 = 0;
  2926.  
  2927.     self = self;
  2928.     if(!PyArg_ParseTuple(args,"s:PDF_info_Creator_get",&_argc0)) 
  2929.         return NULL;
  2930.     if (_argc0) {
  2931.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_info_p")) {
  2932.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_info_Creator_get. Expected _PDF_info_p.");
  2933.         return NULL;
  2934.         }
  2935.     }
  2936.     _result = (char *)PDF_info_Creator_get(_arg0);
  2937.     _resultobj = Py_BuildValue("s", _result);
  2938.     return _resultobj;
  2939. }
  2940.  
  2941. static char * PDF_info_Author_set(PDF_info *obj, char *val) {
  2942.     if (obj->Author) free(obj->Author);
  2943.     obj->Author = (char *) malloc(strlen(val)+1);
  2944.     strcpy(obj->Author,val);
  2945.     return val;
  2946. }
  2947. static PyObject *_wrap_PDF_info_Author_set(PyObject *self, PyObject *args) {
  2948.     PyObject * _resultobj;
  2949.     char * _result;
  2950.     PDF_info * _arg0;
  2951.     char * _arg1;
  2952.     char * _argc0 = 0;
  2953.  
  2954.     self = self;
  2955.     if(!PyArg_ParseTuple(args,"ss:PDF_info_Author_set",&_argc0,&_arg1)) 
  2956.         return NULL;
  2957.     if (_argc0) {
  2958.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_info_p")) {
  2959.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_info_Author_set. Expected _PDF_info_p.");
  2960.         return NULL;
  2961.         }
  2962.     }
  2963.     _result = (char *)PDF_info_Author_set(_arg0,_arg1);
  2964.     _resultobj = Py_BuildValue("s", _result);
  2965.     return _resultobj;
  2966. }
  2967.  
  2968. #define PDF_info_Author_get(_swigobj) ((char *) _swigobj->Author)
  2969. static PyObject *_wrap_PDF_info_Author_get(PyObject *self, PyObject *args) {
  2970.     PyObject * _resultobj;
  2971.     char * _result;
  2972.     PDF_info * _arg0;
  2973.     char * _argc0 = 0;
  2974.  
  2975.     self = self;
  2976.     if(!PyArg_ParseTuple(args,"s:PDF_info_Author_get",&_argc0)) 
  2977.         return NULL;
  2978.     if (_argc0) {
  2979.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_info_p")) {
  2980.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_info_Author_get. Expected _PDF_info_p.");
  2981.         return NULL;
  2982.         }
  2983.     }
  2984.     _result = (char *)PDF_info_Author_get(_arg0);
  2985.     _resultobj = Py_BuildValue("s", _result);
  2986.     return _resultobj;
  2987. }
  2988.  
  2989. static char * PDF_info_fontpath_set(PDF_info *obj, char *val) {
  2990.     if (obj->fontpath) free(obj->fontpath);
  2991.     obj->fontpath = (char *) malloc(strlen(val)+1);
  2992.     strcpy(obj->fontpath,val);
  2993.     return val;
  2994. }
  2995. static PyObject *_wrap_PDF_info_fontpath_set(PyObject *self, PyObject *args) {
  2996.     PyObject * _resultobj;
  2997.     char * _result;
  2998.     PDF_info * _arg0;
  2999.     char * _arg1;
  3000.     char * _argc0 = 0;
  3001.  
  3002.     self = self;
  3003.     if(!PyArg_ParseTuple(args,"ss:PDF_info_fontpath_set",&_argc0,&_arg1)) 
  3004.         return NULL;
  3005.     if (_argc0) {
  3006.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_info_p")) {
  3007.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_info_fontpath_set. Expected _PDF_info_p.");
  3008.         return NULL;
  3009.         }
  3010.     }
  3011.     _result = (char *)PDF_info_fontpath_set(_arg0,_arg1);
  3012.     _resultobj = Py_BuildValue("s", _result);
  3013.     return _resultobj;
  3014. }
  3015.  
  3016. #define PDF_info_fontpath_get(_swigobj) ((char *) _swigobj->fontpath)
  3017. static PyObject *_wrap_PDF_info_fontpath_get(PyObject *self, PyObject *args) {
  3018.     PyObject * _resultobj;
  3019.     char * _result;
  3020.     PDF_info * _arg0;
  3021.     char * _argc0 = 0;
  3022.  
  3023.     self = self;
  3024.     if(!PyArg_ParseTuple(args,"s:PDF_info_fontpath_get",&_argc0)) 
  3025.         return NULL;
  3026.     if (_argc0) {
  3027.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_info_p")) {
  3028.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_info_fontpath_get. Expected _PDF_info_p.");
  3029.         return NULL;
  3030.         }
  3031.     }
  3032.     _result = (char *)PDF_info_fontpath_get(_arg0);
  3033.     _resultobj = Py_BuildValue("s", _result);
  3034.     return _resultobj;
  3035. }
  3036.  
  3037. #define PDF_matrix_a_set(_swigobj,_swigval) (_swigobj->a = _swigval,_swigval)
  3038. static PyObject *_wrap_PDF_matrix_a_set(PyObject *self, PyObject *args) {
  3039.     PyObject * _resultobj;
  3040.     float  _result;
  3041.     PDF_matrix * _arg0;
  3042.     float  _arg1;
  3043.     char * _argc0 = 0;
  3044.  
  3045.     self = self;
  3046.     if(!PyArg_ParseTuple(args,"sf:PDF_matrix_a_set",&_argc0,&_arg1)) 
  3047.         return NULL;
  3048.     if (_argc0) {
  3049.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_matrix_p")) {
  3050.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_matrix_a_set. Expected _PDF_matrix_p.");
  3051.         return NULL;
  3052.         }
  3053.     }
  3054.     _result = (float )PDF_matrix_a_set(_arg0,_arg1);
  3055.     _resultobj = Py_BuildValue("f",_result);
  3056.     return _resultobj;
  3057. }
  3058.  
  3059. #define PDF_matrix_a_get(_swigobj) ((float ) _swigobj->a)
  3060. static PyObject *_wrap_PDF_matrix_a_get(PyObject *self, PyObject *args) {
  3061.     PyObject * _resultobj;
  3062.     float  _result;
  3063.     PDF_matrix * _arg0;
  3064.     char * _argc0 = 0;
  3065.  
  3066.     self = self;
  3067.     if(!PyArg_ParseTuple(args,"s:PDF_matrix_a_get",&_argc0)) 
  3068.         return NULL;
  3069.     if (_argc0) {
  3070.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_matrix_p")) {
  3071.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_matrix_a_get. Expected _PDF_matrix_p.");
  3072.         return NULL;
  3073.         }
  3074.     }
  3075.     _result = (float )PDF_matrix_a_get(_arg0);
  3076.     _resultobj = Py_BuildValue("f",_result);
  3077.     return _resultobj;
  3078. }
  3079.  
  3080. #define PDF_matrix_b_set(_swigobj,_swigval) (_swigobj->b = _swigval,_swigval)
  3081. static PyObject *_wrap_PDF_matrix_b_set(PyObject *self, PyObject *args) {
  3082.     PyObject * _resultobj;
  3083.     float  _result;
  3084.     PDF_matrix * _arg0;
  3085.     float  _arg1;
  3086.     char * _argc0 = 0;
  3087.  
  3088.     self = self;
  3089.     if(!PyArg_ParseTuple(args,"sf:PDF_matrix_b_set",&_argc0,&_arg1)) 
  3090.         return NULL;
  3091.     if (_argc0) {
  3092.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_matrix_p")) {
  3093.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_matrix_b_set. Expected _PDF_matrix_p.");
  3094.         return NULL;
  3095.         }
  3096.     }
  3097.     _result = (float )PDF_matrix_b_set(_arg0,_arg1);
  3098.     _resultobj = Py_BuildValue("f",_result);
  3099.     return _resultobj;
  3100. }
  3101.  
  3102. #define PDF_matrix_b_get(_swigobj) ((float ) _swigobj->b)
  3103. static PyObject *_wrap_PDF_matrix_b_get(PyObject *self, PyObject *args) {
  3104.     PyObject * _resultobj;
  3105.     float  _result;
  3106.     PDF_matrix * _arg0;
  3107.     char * _argc0 = 0;
  3108.  
  3109.     self = self;
  3110.     if(!PyArg_ParseTuple(args,"s:PDF_matrix_b_get",&_argc0)) 
  3111.         return NULL;
  3112.     if (_argc0) {
  3113.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_matrix_p")) {
  3114.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_matrix_b_get. Expected _PDF_matrix_p.");
  3115.         return NULL;
  3116.         }
  3117.     }
  3118.     _result = (float )PDF_matrix_b_get(_arg0);
  3119.     _resultobj = Py_BuildValue("f",_result);
  3120.     return _resultobj;
  3121. }
  3122.  
  3123. #define PDF_matrix_c_set(_swigobj,_swigval) (_swigobj->c = _swigval,_swigval)
  3124. static PyObject *_wrap_PDF_matrix_c_set(PyObject *self, PyObject *args) {
  3125.     PyObject * _resultobj;
  3126.     float  _result;
  3127.     PDF_matrix * _arg0;
  3128.     float  _arg1;
  3129.     char * _argc0 = 0;
  3130.  
  3131.     self = self;
  3132.     if(!PyArg_ParseTuple(args,"sf:PDF_matrix_c_set",&_argc0,&_arg1)) 
  3133.         return NULL;
  3134.     if (_argc0) {
  3135.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_matrix_p")) {
  3136.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_matrix_c_set. Expected _PDF_matrix_p.");
  3137.         return NULL;
  3138.         }
  3139.     }
  3140.     _result = (float )PDF_matrix_c_set(_arg0,_arg1);
  3141.     _resultobj = Py_BuildValue("f",_result);
  3142.     return _resultobj;
  3143. }
  3144.  
  3145. #define PDF_matrix_c_get(_swigobj) ((float ) _swigobj->c)
  3146. static PyObject *_wrap_PDF_matrix_c_get(PyObject *self, PyObject *args) {
  3147.     PyObject * _resultobj;
  3148.     float  _result;
  3149.     PDF_matrix * _arg0;
  3150.     char * _argc0 = 0;
  3151.  
  3152.     self = self;
  3153.     if(!PyArg_ParseTuple(args,"s:PDF_matrix_c_get",&_argc0)) 
  3154.         return NULL;
  3155.     if (_argc0) {
  3156.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_matrix_p")) {
  3157.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_matrix_c_get. Expected _PDF_matrix_p.");
  3158.         return NULL;
  3159.         }
  3160.     }
  3161.     _result = (float )PDF_matrix_c_get(_arg0);
  3162.     _resultobj = Py_BuildValue("f",_result);
  3163.     return _resultobj;
  3164. }
  3165.  
  3166. #define PDF_matrix_d_set(_swigobj,_swigval) (_swigobj->d = _swigval,_swigval)
  3167. static PyObject *_wrap_PDF_matrix_d_set(PyObject *self, PyObject *args) {
  3168.     PyObject * _resultobj;
  3169.     float  _result;
  3170.     PDF_matrix * _arg0;
  3171.     float  _arg1;
  3172.     char * _argc0 = 0;
  3173.  
  3174.     self = self;
  3175.     if(!PyArg_ParseTuple(args,"sf:PDF_matrix_d_set",&_argc0,&_arg1)) 
  3176.         return NULL;
  3177.     if (_argc0) {
  3178.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_matrix_p")) {
  3179.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_matrix_d_set. Expected _PDF_matrix_p.");
  3180.         return NULL;
  3181.         }
  3182.     }
  3183.     _result = (float )PDF_matrix_d_set(_arg0,_arg1);
  3184.     _resultobj = Py_BuildValue("f",_result);
  3185.     return _resultobj;
  3186. }
  3187.  
  3188. #define PDF_matrix_d_get(_swigobj) ((float ) _swigobj->d)
  3189. static PyObject *_wrap_PDF_matrix_d_get(PyObject *self, PyObject *args) {
  3190.     PyObject * _resultobj;
  3191.     float  _result;
  3192.     PDF_matrix * _arg0;
  3193.     char * _argc0 = 0;
  3194.  
  3195.     self = self;
  3196.     if(!PyArg_ParseTuple(args,"s:PDF_matrix_d_get",&_argc0)) 
  3197.         return NULL;
  3198.     if (_argc0) {
  3199.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_matrix_p")) {
  3200.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_matrix_d_get. Expected _PDF_matrix_p.");
  3201.         return NULL;
  3202.         }
  3203.     }
  3204.     _result = (float )PDF_matrix_d_get(_arg0);
  3205.     _resultobj = Py_BuildValue("f",_result);
  3206.     return _resultobj;
  3207. }
  3208.  
  3209. #define PDF_matrix_e_set(_swigobj,_swigval) (_swigobj->e = _swigval,_swigval)
  3210. static PyObject *_wrap_PDF_matrix_e_set(PyObject *self, PyObject *args) {
  3211.     PyObject * _resultobj;
  3212.     float  _result;
  3213.     PDF_matrix * _arg0;
  3214.     float  _arg1;
  3215.     char * _argc0 = 0;
  3216.  
  3217.     self = self;
  3218.     if(!PyArg_ParseTuple(args,"sf:PDF_matrix_e_set",&_argc0,&_arg1)) 
  3219.         return NULL;
  3220.     if (_argc0) {
  3221.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_matrix_p")) {
  3222.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_matrix_e_set. Expected _PDF_matrix_p.");
  3223.         return NULL;
  3224.         }
  3225.     }
  3226.     _result = (float )PDF_matrix_e_set(_arg0,_arg1);
  3227.     _resultobj = Py_BuildValue("f",_result);
  3228.     return _resultobj;
  3229. }
  3230.  
  3231. #define PDF_matrix_e_get(_swigobj) ((float ) _swigobj->e)
  3232. static PyObject *_wrap_PDF_matrix_e_get(PyObject *self, PyObject *args) {
  3233.     PyObject * _resultobj;
  3234.     float  _result;
  3235.     PDF_matrix * _arg0;
  3236.     char * _argc0 = 0;
  3237.  
  3238.     self = self;
  3239.     if(!PyArg_ParseTuple(args,"s:PDF_matrix_e_get",&_argc0)) 
  3240.         return NULL;
  3241.     if (_argc0) {
  3242.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_matrix_p")) {
  3243.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_matrix_e_get. Expected _PDF_matrix_p.");
  3244.         return NULL;
  3245.         }
  3246.     }
  3247.     _result = (float )PDF_matrix_e_get(_arg0);
  3248.     _resultobj = Py_BuildValue("f",_result);
  3249.     return _resultobj;
  3250. }
  3251.  
  3252. #define PDF_matrix_f_set(_swigobj,_swigval) (_swigobj->f = _swigval,_swigval)
  3253. static PyObject *_wrap_PDF_matrix_f_set(PyObject *self, PyObject *args) {
  3254.     PyObject * _resultobj;
  3255.     float  _result;
  3256.     PDF_matrix * _arg0;
  3257.     float  _arg1;
  3258.     char * _argc0 = 0;
  3259.  
  3260.     self = self;
  3261.     if(!PyArg_ParseTuple(args,"sf:PDF_matrix_f_set",&_argc0,&_arg1)) 
  3262.         return NULL;
  3263.     if (_argc0) {
  3264.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_matrix_p")) {
  3265.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_matrix_f_set. Expected _PDF_matrix_p.");
  3266.         return NULL;
  3267.         }
  3268.     }
  3269.     _result = (float )PDF_matrix_f_set(_arg0,_arg1);
  3270.     _resultobj = Py_BuildValue("f",_result);
  3271.     return _resultobj;
  3272. }
  3273.  
  3274. #define PDF_matrix_f_get(_swigobj) ((float ) _swigobj->f)
  3275. static PyObject *_wrap_PDF_matrix_f_get(PyObject *self, PyObject *args) {
  3276.     PyObject * _resultobj;
  3277.     float  _result;
  3278.     PDF_matrix * _arg0;
  3279.     char * _argc0 = 0;
  3280.  
  3281.     self = self;
  3282.     if(!PyArg_ParseTuple(args,"s:PDF_matrix_f_get",&_argc0)) 
  3283.         return NULL;
  3284.     if (_argc0) {
  3285.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_matrix_p")) {
  3286.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_matrix_f_get. Expected _PDF_matrix_p.");
  3287.         return NULL;
  3288.         }
  3289.     }
  3290.     _result = (float )PDF_matrix_f_get(_arg0);
  3291.     _resultobj = Py_BuildValue("f",_result);
  3292.     return _resultobj;
  3293. }
  3294.  
  3295. #define PDF_data_source_s_next_byte_set(_swigobj,_swigval) (_swigobj->next_byte = _swigval,_swigval)
  3296. static PyObject *_wrap_PDF_data_source_s_next_byte_set(PyObject *self, PyObject *args) {
  3297.     PyObject * _resultobj;
  3298.     byte * _result;
  3299.     struct PDF_data_source_s * _arg0;
  3300.     byte * _arg1;
  3301.     char * _argc0 = 0;
  3302.     char * _argc1 = 0;
  3303.     char _ptemp[128];
  3304.  
  3305.     self = self;
  3306.     if(!PyArg_ParseTuple(args,"ss:PDF_data_source_s_next_byte_set",&_argc0,&_argc1)) 
  3307.         return NULL;
  3308.     if (_argc0) {
  3309.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_struct_PDF_data_source_s_p")) {
  3310.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_data_source_s_next_byte_set. Expected _struct_PDF_data_source_s_p.");
  3311.         return NULL;
  3312.         }
  3313.     }
  3314.     if (_argc1) {
  3315.         if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_byte_p")) {
  3316.             PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of PDF_data_source_s_next_byte_set. Expected _byte_p.");
  3317.         return NULL;
  3318.         }
  3319.     }
  3320.     _result = (byte *)PDF_data_source_s_next_byte_set(_arg0,_arg1);
  3321.     SWIG_MakePtr(_ptemp, (char *) _result,"_byte_p");
  3322.     _resultobj = Py_BuildValue("s",_ptemp);
  3323.     return _resultobj;
  3324. }
  3325.  
  3326. #define PDF_data_source_s_next_byte_get(_swigobj) ((byte *) _swigobj->next_byte)
  3327. static PyObject *_wrap_PDF_data_source_s_next_byte_get(PyObject *self, PyObject *args) {
  3328.     PyObject * _resultobj;
  3329.     byte * _result;
  3330.     struct PDF_data_source_s * _arg0;
  3331.     char * _argc0 = 0;
  3332.     char _ptemp[128];
  3333.  
  3334.     self = self;
  3335.     if(!PyArg_ParseTuple(args,"s:PDF_data_source_s_next_byte_get",&_argc0)) 
  3336.         return NULL;
  3337.     if (_argc0) {
  3338.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_struct_PDF_data_source_s_p")) {
  3339.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_data_source_s_next_byte_get. Expected _struct_PDF_data_source_s_p.");
  3340.         return NULL;
  3341.         }
  3342.     }
  3343.     _result = (byte *)PDF_data_source_s_next_byte_get(_arg0);
  3344.     SWIG_MakePtr(_ptemp, (char *) _result,"_byte_p");
  3345.     _resultobj = Py_BuildValue("s",_ptemp);
  3346.     return _resultobj;
  3347. }
  3348.  
  3349. #define PDF_data_source_s_bytes_available_set(_swigobj,_swigval) (_swigobj->bytes_available = *(_swigval),_swigval)
  3350. static PyObject *_wrap_PDF_data_source_s_bytes_available_set(PyObject *self, PyObject *args) {
  3351.     PyObject * _resultobj;
  3352.     size_t * _result;
  3353.     struct PDF_data_source_s * _arg0;
  3354.     size_t * _arg1;
  3355.     char * _argc0 = 0;
  3356.     char * _argc1 = 0;
  3357.     char _ptemp[128];
  3358.  
  3359.     self = self;
  3360.     if(!PyArg_ParseTuple(args,"ss:PDF_data_source_s_bytes_available_set",&_argc0,&_argc1)) 
  3361.         return NULL;
  3362.     if (_argc0) {
  3363.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_struct_PDF_data_source_s_p")) {
  3364.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_data_source_s_bytes_available_set. Expected _struct_PDF_data_source_s_p.");
  3365.         return NULL;
  3366.         }
  3367.     }
  3368.     if (_argc1) {
  3369.         if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_size_t_p")) {
  3370.             PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of PDF_data_source_s_bytes_available_set. Expected _size_t_p.");
  3371.         return NULL;
  3372.         }
  3373.     }
  3374.     _result = (size_t *)PDF_data_source_s_bytes_available_set(_arg0,_arg1);
  3375.     SWIG_MakePtr(_ptemp, (char *) _result,"_size_t_p");
  3376.     _resultobj = Py_BuildValue("s",_ptemp);
  3377.     return _resultobj;
  3378. }
  3379.  
  3380. #define PDF_data_source_s_bytes_available_get(_swigobj) (&_swigobj->bytes_available)
  3381. static PyObject *_wrap_PDF_data_source_s_bytes_available_get(PyObject *self, PyObject *args) {
  3382.     PyObject * _resultobj;
  3383.     size_t * _result;
  3384.     struct PDF_data_source_s * _arg0;
  3385.     char * _argc0 = 0;
  3386.     char _ptemp[128];
  3387.  
  3388.     self = self;
  3389.     if(!PyArg_ParseTuple(args,"s:PDF_data_source_s_bytes_available_get",&_argc0)) 
  3390.         return NULL;
  3391.     if (_argc0) {
  3392.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_struct_PDF_data_source_s_p")) {
  3393.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_data_source_s_bytes_available_get. Expected _struct_PDF_data_source_s_p.");
  3394.         return NULL;
  3395.         }
  3396.     }
  3397.     _result = (size_t *)PDF_data_source_s_bytes_available_get(_arg0);
  3398.     SWIG_MakePtr(_ptemp, (char *) _result,"_size_t_p");
  3399.     _resultobj = Py_BuildValue("s",_ptemp);
  3400.     return _resultobj;
  3401. }
  3402.  
  3403. #define PDF_data_source_s_buffer_start_set(_swigobj,_swigval) (_swigobj->buffer_start = _swigval,_swigval)
  3404. static PyObject *_wrap_PDF_data_source_s_buffer_start_set(PyObject *self, PyObject *args) {
  3405.     PyObject * _resultobj;
  3406.     byte * _result;
  3407.     struct PDF_data_source_s * _arg0;
  3408.     byte * _arg1;
  3409.     char * _argc0 = 0;
  3410.     char * _argc1 = 0;
  3411.     char _ptemp[128];
  3412.  
  3413.     self = self;
  3414.     if(!PyArg_ParseTuple(args,"ss:PDF_data_source_s_buffer_start_set",&_argc0,&_argc1)) 
  3415.         return NULL;
  3416.     if (_argc0) {
  3417.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_struct_PDF_data_source_s_p")) {
  3418.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_data_source_s_buffer_start_set. Expected _struct_PDF_data_source_s_p.");
  3419.         return NULL;
  3420.         }
  3421.     }
  3422.     if (_argc1) {
  3423.         if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_byte_p")) {
  3424.             PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of PDF_data_source_s_buffer_start_set. Expected _byte_p.");
  3425.         return NULL;
  3426.         }
  3427.     }
  3428.     _result = (byte *)PDF_data_source_s_buffer_start_set(_arg0,_arg1);
  3429.     SWIG_MakePtr(_ptemp, (char *) _result,"_byte_p");
  3430.     _resultobj = Py_BuildValue("s",_ptemp);
  3431.     return _resultobj;
  3432. }
  3433.  
  3434. #define PDF_data_source_s_buffer_start_get(_swigobj) ((byte *) _swigobj->buffer_start)
  3435. static PyObject *_wrap_PDF_data_source_s_buffer_start_get(PyObject *self, PyObject *args) {
  3436.     PyObject * _resultobj;
  3437.     byte * _result;
  3438.     struct PDF_data_source_s * _arg0;
  3439.     char * _argc0 = 0;
  3440.     char _ptemp[128];
  3441.  
  3442.     self = self;
  3443.     if(!PyArg_ParseTuple(args,"s:PDF_data_source_s_buffer_start_get",&_argc0)) 
  3444.         return NULL;
  3445.     if (_argc0) {
  3446.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_struct_PDF_data_source_s_p")) {
  3447.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_data_source_s_buffer_start_get. Expected _struct_PDF_data_source_s_p.");
  3448.         return NULL;
  3449.         }
  3450.     }
  3451.     _result = (byte *)PDF_data_source_s_buffer_start_get(_arg0);
  3452.     SWIG_MakePtr(_ptemp, (char *) _result,"_byte_p");
  3453.     _resultobj = Py_BuildValue("s",_ptemp);
  3454.     return _resultobj;
  3455. }
  3456.  
  3457. #define PDF_data_source_s_buffer_length_set(_swigobj,_swigval) (_swigobj->buffer_length = *(_swigval),_swigval)
  3458. static PyObject *_wrap_PDF_data_source_s_buffer_length_set(PyObject *self, PyObject *args) {
  3459.     PyObject * _resultobj;
  3460.     size_t * _result;
  3461.     struct PDF_data_source_s * _arg0;
  3462.     size_t * _arg1;
  3463.     char * _argc0 = 0;
  3464.     char * _argc1 = 0;
  3465.     char _ptemp[128];
  3466.  
  3467.     self = self;
  3468.     if(!PyArg_ParseTuple(args,"ss:PDF_data_source_s_buffer_length_set",&_argc0,&_argc1)) 
  3469.         return NULL;
  3470.     if (_argc0) {
  3471.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_struct_PDF_data_source_s_p")) {
  3472.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_data_source_s_buffer_length_set. Expected _struct_PDF_data_source_s_p.");
  3473.         return NULL;
  3474.         }
  3475.     }
  3476.     if (_argc1) {
  3477.         if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_size_t_p")) {
  3478.             PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of PDF_data_source_s_buffer_length_set. Expected _size_t_p.");
  3479.         return NULL;
  3480.         }
  3481.     }
  3482.     _result = (size_t *)PDF_data_source_s_buffer_length_set(_arg0,_arg1);
  3483.     SWIG_MakePtr(_ptemp, (char *) _result,"_size_t_p");
  3484.     _resultobj = Py_BuildValue("s",_ptemp);
  3485.     return _resultobj;
  3486. }
  3487.  
  3488. #define PDF_data_source_s_buffer_length_get(_swigobj) (&_swigobj->buffer_length)
  3489. static PyObject *_wrap_PDF_data_source_s_buffer_length_get(PyObject *self, PyObject *args) {
  3490.     PyObject * _resultobj;
  3491.     size_t * _result;
  3492.     struct PDF_data_source_s * _arg0;
  3493.     char * _argc0 = 0;
  3494.     char _ptemp[128];
  3495.  
  3496.     self = self;
  3497.     if(!PyArg_ParseTuple(args,"s:PDF_data_source_s_buffer_length_get",&_argc0)) 
  3498.         return NULL;
  3499.     if (_argc0) {
  3500.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_struct_PDF_data_source_s_p")) {
  3501.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_data_source_s_buffer_length_get. Expected _struct_PDF_data_source_s_p.");
  3502.         return NULL;
  3503.         }
  3504.     }
  3505.     _result = (size_t *)PDF_data_source_s_buffer_length_get(_arg0);
  3506.     SWIG_MakePtr(_ptemp, (char *) _result,"_size_t_p");
  3507.     _resultobj = Py_BuildValue("s",_ptemp);
  3508.     return _resultobj;
  3509. }
  3510.  
  3511. #define PDF_data_source_s_private_data_set(_swigobj,_swigval) (_swigobj->private_data = _swigval,_swigval)
  3512. static PyObject *_wrap_PDF_data_source_s_private_data_set(PyObject *self, PyObject *args) {
  3513.     PyObject * _resultobj;
  3514.     byte * _result;
  3515.     struct PDF_data_source_s * _arg0;
  3516.     byte * _arg1;
  3517.     char * _argc0 = 0;
  3518.     char * _argc1 = 0;
  3519.     char _ptemp[128];
  3520.  
  3521.     self = self;
  3522.     if(!PyArg_ParseTuple(args,"ss:PDF_data_source_s_private_data_set",&_argc0,&_argc1)) 
  3523.         return NULL;
  3524.     if (_argc0) {
  3525.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_struct_PDF_data_source_s_p")) {
  3526.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_data_source_s_private_data_set. Expected _struct_PDF_data_source_s_p.");
  3527.         return NULL;
  3528.         }
  3529.     }
  3530.     if (_argc1) {
  3531.         if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_byte_p")) {
  3532.             PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of PDF_data_source_s_private_data_set. Expected _byte_p.");
  3533.         return NULL;
  3534.         }
  3535.     }
  3536.     _result = (byte *)PDF_data_source_s_private_data_set(_arg0,_arg1);
  3537.     SWIG_MakePtr(_ptemp, (char *) _result,"_byte_p");
  3538.     _resultobj = Py_BuildValue("s",_ptemp);
  3539.     return _resultobj;
  3540. }
  3541.  
  3542. #define PDF_data_source_s_private_data_get(_swigobj) ((byte *) _swigobj->private_data)
  3543. static PyObject *_wrap_PDF_data_source_s_private_data_get(PyObject *self, PyObject *args) {
  3544.     PyObject * _resultobj;
  3545.     byte * _result;
  3546.     struct PDF_data_source_s * _arg0;
  3547.     char * _argc0 = 0;
  3548.     char _ptemp[128];
  3549.  
  3550.     self = self;
  3551.     if(!PyArg_ParseTuple(args,"s:PDF_data_source_s_private_data_get",&_argc0)) 
  3552.         return NULL;
  3553.     if (_argc0) {
  3554.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_struct_PDF_data_source_s_p")) {
  3555.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_data_source_s_private_data_get. Expected _struct_PDF_data_source_s_p.");
  3556.         return NULL;
  3557.         }
  3558.     }
  3559.     _result = (byte *)PDF_data_source_s_private_data_get(_arg0);
  3560.     SWIG_MakePtr(_ptemp, (char *) _result,"_byte_p");
  3561.     _resultobj = Py_BuildValue("s",_ptemp);
  3562.     return _resultobj;
  3563. }
  3564.  
  3565. #define PDF_image_t_fp_set(_swigobj,_swigval) (_swigobj->fp = _swigval,_swigval)
  3566. static PyObject *_wrap_PDF_image_fp_set(PyObject *self, PyObject *args) {
  3567.     PyObject * _resultobj;
  3568.     FILE * _result;
  3569.     PDF_image * _arg0;
  3570.     FILE * _arg1;
  3571.     char * _argc0 = 0;
  3572.     char * _argc1 = 0;
  3573.     char _ptemp[128];
  3574.  
  3575.     self = self;
  3576.     if(!PyArg_ParseTuple(args,"ss:PDF_image_fp_set",&_argc0,&_argc1)) 
  3577.         return NULL;
  3578.     if (_argc0) {
  3579.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
  3580.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_fp_set. Expected _PDF_image_p.");
  3581.         return NULL;
  3582.         }
  3583.     }
  3584.     if (_argc1) {
  3585.         if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_FILE_p")) {
  3586.             PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of PDF_image_fp_set. Expected _FILE_p.");
  3587.         return NULL;
  3588.         }
  3589.     }
  3590.     _result = (FILE *)PDF_image_t_fp_set(_arg0,_arg1);
  3591.     SWIG_MakePtr(_ptemp, (char *) _result,"_FILE_p");
  3592.     _resultobj = Py_BuildValue("s",_ptemp);
  3593.     return _resultobj;
  3594. }
  3595.  
  3596. #define PDF_image_t_fp_get(_swigobj) ((FILE *) _swigobj->fp)
  3597. static PyObject *_wrap_PDF_image_fp_get(PyObject *self, PyObject *args) {
  3598.     PyObject * _resultobj;
  3599.     FILE * _result;
  3600.     PDF_image * _arg0;
  3601.     char * _argc0 = 0;
  3602.     char _ptemp[128];
  3603.  
  3604.     self = self;
  3605.     if(!PyArg_ParseTuple(args,"s:PDF_image_fp_get",&_argc0)) 
  3606.         return NULL;
  3607.     if (_argc0) {
  3608.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
  3609.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_fp_get. Expected _PDF_image_p.");
  3610.         return NULL;
  3611.         }
  3612.     }
  3613.     _result = (FILE *)PDF_image_t_fp_get(_arg0);
  3614.     SWIG_MakePtr(_ptemp, (char *) _result,"_FILE_p");
  3615.     _resultobj = Py_BuildValue("s",_ptemp);
  3616.     return _resultobj;
  3617. }
  3618.  
  3619. static char * PDF_image_t_filename_set(PDF_image *obj, char *val) {
  3620.     if (obj->filename) free(obj->filename);
  3621.     obj->filename = (char *) malloc(strlen(val)+1);
  3622.     strcpy(obj->filename,val);
  3623.     return val;
  3624. }
  3625. static PyObject *_wrap_PDF_image_filename_set(PyObject *self, PyObject *args) {
  3626.     PyObject * _resultobj;
  3627.     char * _result;
  3628.     PDF_image * _arg0;
  3629.     char * _arg1;
  3630.     char * _argc0 = 0;
  3631.  
  3632.     self = self;
  3633.     if(!PyArg_ParseTuple(args,"ss:PDF_image_filename_set",&_argc0,&_arg1)) 
  3634.         return NULL;
  3635.     if (_argc0) {
  3636.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
  3637.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_filename_set. Expected _PDF_image_p.");
  3638.         return NULL;
  3639.         }
  3640.     }
  3641.     _result = (char *)PDF_image_t_filename_set(_arg0,_arg1);
  3642.     _resultobj = Py_BuildValue("s", _result);
  3643.     return _resultobj;
  3644. }
  3645.  
  3646. #define PDF_image_t_filename_get(_swigobj) ((char *) _swigobj->filename)
  3647. static PyObject *_wrap_PDF_image_filename_get(PyObject *self, PyObject *args) {
  3648.     PyObject * _resultobj;
  3649.     char * _result;
  3650.     PDF_image * _arg0;
  3651.     char * _argc0 = 0;
  3652.  
  3653.     self = self;
  3654.     if(!PyArg_ParseTuple(args,"s:PDF_image_filename_get",&_argc0)) 
  3655.         return NULL;
  3656.     if (_argc0) {
  3657.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
  3658.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_filename_get. Expected _PDF_image_p.");
  3659.         return NULL;
  3660.         }
  3661.     }
  3662.     _result = (char *)PDF_image_t_filename_get(_arg0);
  3663.     _resultobj = Py_BuildValue("s", _result);
  3664.     return _resultobj;
  3665. }
  3666.  
  3667. #define PDF_image_t_width_set(_swigobj,_swigval) (_swigobj->width = _swigval,_swigval)
  3668. static PyObject *_wrap_PDF_image_width_set(PyObject *self, PyObject *args) {
  3669.     PyObject * _resultobj;
  3670.     unsigned int  _result;
  3671.     PDF_image * _arg0;
  3672.     unsigned int  _arg1;
  3673.     char * _argc0 = 0;
  3674.  
  3675.     self = self;
  3676.     if(!PyArg_ParseTuple(args,"si:PDF_image_width_set",&_argc0,&_arg1)) 
  3677.         return NULL;
  3678.     if (_argc0) {
  3679.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
  3680.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_width_set. Expected _PDF_image_p.");
  3681.         return NULL;
  3682.         }
  3683.     }
  3684.     _result = (unsigned int )PDF_image_t_width_set(_arg0,_arg1);
  3685.     _resultobj = Py_BuildValue("i",_result);
  3686.     return _resultobj;
  3687. }
  3688.  
  3689. #define PDF_image_t_width_get(_swigobj) ((unsigned int ) _swigobj->width)
  3690. static PyObject *_wrap_PDF_image_width_get(PyObject *self, PyObject *args) {
  3691.     PyObject * _resultobj;
  3692.     unsigned int  _result;
  3693.     PDF_image * _arg0;
  3694.     char * _argc0 = 0;
  3695.  
  3696.     self = self;
  3697.     if(!PyArg_ParseTuple(args,"s:PDF_image_width_get",&_argc0)) 
  3698.         return NULL;
  3699.     if (_argc0) {
  3700.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
  3701.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_width_get. Expected _PDF_image_p.");
  3702.         return NULL;
  3703.         }
  3704.     }
  3705.     _result = (unsigned int )PDF_image_t_width_get(_arg0);
  3706.     _resultobj = Py_BuildValue("i",_result);
  3707.     return _resultobj;
  3708. }
  3709.  
  3710. #define PDF_image_t_height_set(_swigobj,_swigval) (_swigobj->height = _swigval,_swigval)
  3711. static PyObject *_wrap_PDF_image_height_set(PyObject *self, PyObject *args) {
  3712.     PyObject * _resultobj;
  3713.     unsigned int  _result;
  3714.     PDF_image * _arg0;
  3715.     unsigned int  _arg1;
  3716.     char * _argc0 = 0;
  3717.  
  3718.     self = self;
  3719.     if(!PyArg_ParseTuple(args,"si:PDF_image_height_set",&_argc0,&_arg1)) 
  3720.         return NULL;
  3721.     if (_argc0) {
  3722.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
  3723.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_height_set. Expected _PDF_image_p.");
  3724.         return NULL;
  3725.         }
  3726.     }
  3727.     _result = (unsigned int )PDF_image_t_height_set(_arg0,_arg1);
  3728.     _resultobj = Py_BuildValue("i",_result);
  3729.     return _resultobj;
  3730. }
  3731.  
  3732. #define PDF_image_t_height_get(_swigobj) ((unsigned int ) _swigobj->height)
  3733. static PyObject *_wrap_PDF_image_height_get(PyObject *self, PyObject *args) {
  3734.     PyObject * _resultobj;
  3735.     unsigned int  _result;
  3736.     PDF_image * _arg0;
  3737.     char * _argc0 = 0;
  3738.  
  3739.     self = self;
  3740.     if(!PyArg_ParseTuple(args,"s:PDF_image_height_get",&_argc0)) 
  3741.         return NULL;
  3742.     if (_argc0) {
  3743.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
  3744.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_height_get. Expected _PDF_image_p.");
  3745.         return NULL;
  3746.         }
  3747.     }
  3748.     _result = (unsigned int )PDF_image_t_height_get(_arg0);
  3749.     _resultobj = Py_BuildValue("i",_result);
  3750.     return _resultobj;
  3751. }
  3752.  
  3753. #define PDF_image_t_bpc_set(_swigobj,_swigval) (_swigobj->bpc = _swigval,_swigval)
  3754. static PyObject *_wrap_PDF_image_bpc_set(PyObject *self, PyObject *args) {
  3755.     PyObject * _resultobj;
  3756.     int  _result;
  3757.     PDF_image * _arg0;
  3758.     int  _arg1;
  3759.     char * _argc0 = 0;
  3760.  
  3761.     self = self;
  3762.     if(!PyArg_ParseTuple(args,"si:PDF_image_bpc_set",&_argc0,&_arg1)) 
  3763.         return NULL;
  3764.     if (_argc0) {
  3765.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
  3766.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_bpc_set. Expected _PDF_image_p.");
  3767.         return NULL;
  3768.         }
  3769.     }
  3770.     _result = (int )PDF_image_t_bpc_set(_arg0,_arg1);
  3771.     _resultobj = Py_BuildValue("i",_result);
  3772.     return _resultobj;
  3773. }
  3774.  
  3775. #define PDF_image_t_bpc_get(_swigobj) ((int ) _swigobj->bpc)
  3776. static PyObject *_wrap_PDF_image_bpc_get(PyObject *self, PyObject *args) {
  3777.     PyObject * _resultobj;
  3778.     int  _result;
  3779.     PDF_image * _arg0;
  3780.     char * _argc0 = 0;
  3781.  
  3782.     self = self;
  3783.     if(!PyArg_ParseTuple(args,"s:PDF_image_bpc_get",&_argc0)) 
  3784.         return NULL;
  3785.     if (_argc0) {
  3786.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
  3787.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_bpc_get. Expected _PDF_image_p.");
  3788.         return NULL;
  3789.         }
  3790.     }
  3791.     _result = (int )PDF_image_t_bpc_get(_arg0);
  3792.     _resultobj = Py_BuildValue("i",_result);
  3793.     return _resultobj;
  3794. }
  3795.  
  3796. #define PDF_image_t_components_set(_swigobj,_swigval) (_swigobj->components = _swigval,_swigval)
  3797. static PyObject *_wrap_PDF_image_components_set(PyObject *self, PyObject *args) {
  3798.     PyObject * _resultobj;
  3799.     unsigned int  _result;
  3800.     PDF_image * _arg0;
  3801.     unsigned int  _arg1;
  3802.     char * _argc0 = 0;
  3803.  
  3804.     self = self;
  3805.     if(!PyArg_ParseTuple(args,"si:PDF_image_components_set",&_argc0,&_arg1)) 
  3806.         return NULL;
  3807.     if (_argc0) {
  3808.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
  3809.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_components_set. Expected _PDF_image_p.");
  3810.         return NULL;
  3811.         }
  3812.     }
  3813.     _result = (unsigned int )PDF_image_t_components_set(_arg0,_arg1);
  3814.     _resultobj = Py_BuildValue("i",_result);
  3815.     return _resultobj;
  3816. }
  3817.  
  3818. #define PDF_image_t_components_get(_swigobj) ((unsigned int ) _swigobj->components)
  3819. static PyObject *_wrap_PDF_image_components_get(PyObject *self, PyObject *args) {
  3820.     PyObject * _resultobj;
  3821.     unsigned int  _result;
  3822.     PDF_image * _arg0;
  3823.     char * _argc0 = 0;
  3824.  
  3825.     self = self;
  3826.     if(!PyArg_ParseTuple(args,"s:PDF_image_components_get",&_argc0)) 
  3827.         return NULL;
  3828.     if (_argc0) {
  3829.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
  3830.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_components_get. Expected _PDF_image_p.");
  3831.         return NULL;
  3832.         }
  3833.     }
  3834.     _result = (unsigned int )PDF_image_t_components_get(_arg0);
  3835.     _resultobj = Py_BuildValue("i",_result);
  3836.     return _resultobj;
  3837. }
  3838.  
  3839. #define PDF_image_t_compression_set(_swigobj,_swigval) (_swigobj->compression = _swigval,_swigval)
  3840. static PyObject *_wrap_PDF_image_compression_set(PyObject *self, PyObject *args) {
  3841.     PyObject * _resultobj;
  3842.     PDF_compression  _result;
  3843.     PDF_image * _arg0;
  3844.     PDF_compression  _arg1;
  3845.     char * _argc0 = 0;
  3846.  
  3847.     self = self;
  3848.     if(!PyArg_ParseTuple(args,"si:PDF_image_compression_set",&_argc0,&_arg1)) 
  3849.         return NULL;
  3850.     if (_argc0) {
  3851.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
  3852.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_compression_set. Expected _PDF_image_p.");
  3853.         return NULL;
  3854.         }
  3855.     }
  3856.     _result = (PDF_compression )PDF_image_t_compression_set(_arg0,_arg1);
  3857.     _resultobj = Py_BuildValue("i",_result);
  3858.     return _resultobj;
  3859. }
  3860.  
  3861. #define PDF_image_t_compression_get(_swigobj) ((PDF_compression ) _swigobj->compression)
  3862. static PyObject *_wrap_PDF_image_compression_get(PyObject *self, PyObject *args) {
  3863.     PyObject * _resultobj;
  3864.     PDF_compression  _result;
  3865.     PDF_image * _arg0;
  3866.     char * _argc0 = 0;
  3867.  
  3868.     self = self;
  3869.     if(!PyArg_ParseTuple(args,"s:PDF_image_compression_get",&_argc0)) 
  3870.         return NULL;
  3871.     if (_argc0) {
  3872.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
  3873.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_compression_get. Expected _PDF_image_p.");
  3874.         return NULL;
  3875.         }
  3876.     }
  3877.     _result = (PDF_compression )PDF_image_t_compression_get(_arg0);
  3878.     _resultobj = Py_BuildValue("i",_result);
  3879.     return _resultobj;
  3880. }
  3881.  
  3882. #define PDF_image_t_colorspace_set(_swigobj,_swigval) (_swigobj->colorspace = _swigval,_swigval)
  3883. static PyObject *_wrap_PDF_image_colorspace_set(PyObject *self, PyObject *args) {
  3884.     PyObject * _resultobj;
  3885.     PDF_colorspace  _result;
  3886.     PDF_image * _arg0;
  3887.     PDF_colorspace  _arg1;
  3888.     char * _argc0 = 0;
  3889.  
  3890.     self = self;
  3891.     if(!PyArg_ParseTuple(args,"si:PDF_image_colorspace_set",&_argc0,&_arg1)) 
  3892.         return NULL;
  3893.     if (_argc0) {
  3894.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
  3895.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_colorspace_set. Expected _PDF_image_p.");
  3896.         return NULL;
  3897.         }
  3898.     }
  3899.     _result = (PDF_colorspace )PDF_image_t_colorspace_set(_arg0,_arg1);
  3900.     _resultobj = Py_BuildValue("i",_result);
  3901.     return _resultobj;
  3902. }
  3903.  
  3904. #define PDF_image_t_colorspace_get(_swigobj) ((PDF_colorspace ) _swigobj->colorspace)
  3905. static PyObject *_wrap_PDF_image_colorspace_get(PyObject *self, PyObject *args) {
  3906.     PyObject * _resultobj;
  3907.     PDF_colorspace  _result;
  3908.     PDF_image * _arg0;
  3909.     char * _argc0 = 0;
  3910.  
  3911.     self = self;
  3912.     if(!PyArg_ParseTuple(args,"s:PDF_image_colorspace_get",&_argc0)) 
  3913.         return NULL;
  3914.     if (_argc0) {
  3915.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
  3916.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_colorspace_get. Expected _PDF_image_p.");
  3917.         return NULL;
  3918.         }
  3919.     }
  3920.     _result = (PDF_colorspace )PDF_image_t_colorspace_get(_arg0);
  3921.     _resultobj = Py_BuildValue("i",_result);
  3922.     return _resultobj;
  3923. }
  3924.  
  3925. #define PDF_image_t_indexed_set(_swigobj,_swigval) (_swigobj->indexed = _swigval,_swigval)
  3926. static PyObject *_wrap_PDF_image_indexed_set(PyObject *self, PyObject *args) {
  3927.     PyObject * _resultobj;
  3928.     bool  _result;
  3929.     PDF_image * _arg0;
  3930.     bool  _arg1;
  3931.     char * _argc0 = 0;
  3932.     int tempbool1;
  3933.  
  3934.     self = self;
  3935.     if(!PyArg_ParseTuple(args,"si:PDF_image_indexed_set",&_argc0,&tempbool1)) 
  3936.         return NULL;
  3937.     if (_argc0) {
  3938.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
  3939.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_indexed_set. Expected _PDF_image_p.");
  3940.         return NULL;
  3941.         }
  3942.     }
  3943.     _arg1 = (bool ) tempbool1;
  3944.     _result = (bool )PDF_image_t_indexed_set(_arg0,_arg1);
  3945.     _resultobj = Py_BuildValue("i",_result);
  3946.     return _resultobj;
  3947. }
  3948.  
  3949. #define PDF_image_t_indexed_get(_swigobj) ((bool ) _swigobj->indexed)
  3950. static PyObject *_wrap_PDF_image_indexed_get(PyObject *self, PyObject *args) {
  3951.     PyObject * _resultobj;
  3952.     bool  _result;
  3953.     PDF_image * _arg0;
  3954.     char * _argc0 = 0;
  3955.  
  3956.     self = self;
  3957.     if(!PyArg_ParseTuple(args,"s:PDF_image_indexed_get",&_argc0)) 
  3958.         return NULL;
  3959.     if (_argc0) {
  3960.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
  3961.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_indexed_get. Expected _PDF_image_p.");
  3962.         return NULL;
  3963.         }
  3964.     }
  3965.     _result = (bool )PDF_image_t_indexed_get(_arg0);
  3966.     _resultobj = Py_BuildValue("i",_result);
  3967.     return _resultobj;
  3968. }
  3969.  
  3970. #define PDF_image_t_BitPixel_set(_swigobj,_swigval) (_swigobj->BitPixel = _swigval,_swigval)
  3971. static PyObject *_wrap_PDF_image_BitPixel_set(PyObject *self, PyObject *args) {
  3972.     PyObject * _resultobj;
  3973.     unsigned int  _result;
  3974.     PDF_image * _arg0;
  3975.     unsigned int  _arg1;
  3976.     char * _argc0 = 0;
  3977.  
  3978.     self = self;
  3979.     if(!PyArg_ParseTuple(args,"si:PDF_image_BitPixel_set",&_argc0,&_arg1)) 
  3980.         return NULL;
  3981.     if (_argc0) {
  3982.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
  3983.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_BitPixel_set. Expected _PDF_image_p.");
  3984.         return NULL;
  3985.         }
  3986.     }
  3987.     _result = (unsigned int )PDF_image_t_BitPixel_set(_arg0,_arg1);
  3988.     _resultobj = Py_BuildValue("i",_result);
  3989.     return _resultobj;
  3990. }
  3991.  
  3992. #define PDF_image_t_BitPixel_get(_swigobj) ((unsigned int ) _swigobj->BitPixel)
  3993. static PyObject *_wrap_PDF_image_BitPixel_get(PyObject *self, PyObject *args) {
  3994.     PyObject * _resultobj;
  3995.     unsigned int  _result;
  3996.     PDF_image * _arg0;
  3997.     char * _argc0 = 0;
  3998.  
  3999.     self = self;
  4000.     if(!PyArg_ParseTuple(args,"s:PDF_image_BitPixel_get",&_argc0)) 
  4001.         return NULL;
  4002.     if (_argc0) {
  4003.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
  4004.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_BitPixel_get. Expected _PDF_image_p.");
  4005.         return NULL;
  4006.         }
  4007.     }
  4008.     _result = (unsigned int )PDF_image_t_BitPixel_get(_arg0);
  4009.     _resultobj = Py_BuildValue("i",_result);
  4010.     return _resultobj;
  4011. }
  4012.  
  4013. #define PDF_image_t_colormap_get(_swigobj) ((byte *) _swigobj->colormap)
  4014. static PyObject *_wrap_PDF_image_colormap_get(PyObject *self, PyObject *args) {
  4015.     PyObject * _resultobj;
  4016.     byte * _result;
  4017.     PDF_image * _arg0;
  4018.     char * _argc0 = 0;
  4019.     char _ptemp[128];
  4020.  
  4021.     self = self;
  4022.     if(!PyArg_ParseTuple(args,"s:PDF_image_colormap_get",&_argc0)) 
  4023.         return NULL;
  4024.     if (_argc0) {
  4025.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
  4026.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_colormap_get. Expected _PDF_image_p.");
  4027.         return NULL;
  4028.         }
  4029.     }
  4030.     _result = (byte *)PDF_image_t_colormap_get(_arg0);
  4031.     SWIG_MakePtr(_ptemp, (char *) _result,"_pdf_colormap");
  4032.     _resultobj = Py_BuildValue("s",_ptemp);
  4033.     return _resultobj;
  4034. }
  4035.  
  4036. #define PDF_image_t_adobe_set(_swigobj,_swigval) (_swigobj->adobe = _swigval,_swigval)
  4037. static PyObject *_wrap_PDF_image_adobe_set(PyObject *self, PyObject *args) {
  4038.     PyObject * _resultobj;
  4039.     bool  _result;
  4040.     PDF_image * _arg0;
  4041.     bool  _arg1;
  4042.     char * _argc0 = 0;
  4043.     int tempbool1;
  4044.  
  4045.     self = self;
  4046.     if(!PyArg_ParseTuple(args,"si:PDF_image_adobe_set",&_argc0,&tempbool1)) 
  4047.         return NULL;
  4048.     if (_argc0) {
  4049.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
  4050.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_adobe_set. Expected _PDF_image_p.");
  4051.         return NULL;
  4052.         }
  4053.     }
  4054.     _arg1 = (bool ) tempbool1;
  4055.     _result = (bool )PDF_image_t_adobe_set(_arg0,_arg1);
  4056.     _resultobj = Py_BuildValue("i",_result);
  4057.     return _resultobj;
  4058. }
  4059.  
  4060. #define PDF_image_t_adobe_get(_swigobj) ((bool ) _swigobj->adobe)
  4061. static PyObject *_wrap_PDF_image_adobe_get(PyObject *self, PyObject *args) {
  4062.     PyObject * _resultobj;
  4063.     bool  _result;
  4064.     PDF_image * _arg0;
  4065.     char * _argc0 = 0;
  4066.  
  4067.     self = self;
  4068.     if(!PyArg_ParseTuple(args,"s:PDF_image_adobe_get",&_argc0)) 
  4069.         return NULL;
  4070.     if (_argc0) {
  4071.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
  4072.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_adobe_get. Expected _PDF_image_p.");
  4073.         return NULL;
  4074.         }
  4075.     }
  4076.     _result = (bool )PDF_image_t_adobe_get(_arg0);
  4077.     _resultobj = Py_BuildValue("i",_result);
  4078.     return _resultobj;
  4079. }
  4080.  
  4081. #define PDF_image_t_startpos_set(_swigobj,_swigval) (_swigobj->startpos = _swigval,_swigval)
  4082. static PyObject *_wrap_PDF_image_startpos_set(PyObject *self, PyObject *args) {
  4083.     PyObject * _resultobj;
  4084.     long  _result;
  4085.     PDF_image * _arg0;
  4086.     long  _arg1;
  4087.     char * _argc0 = 0;
  4088.  
  4089.     self = self;
  4090.     if(!PyArg_ParseTuple(args,"sl:PDF_image_startpos_set",&_argc0,&_arg1)) 
  4091.         return NULL;
  4092.     if (_argc0) {
  4093.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
  4094.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_startpos_set. Expected _PDF_image_p.");
  4095.         return NULL;
  4096.         }
  4097.     }
  4098.     _result = (long )PDF_image_t_startpos_set(_arg0,_arg1);
  4099.     _resultobj = Py_BuildValue("l",_result);
  4100.     return _resultobj;
  4101. }
  4102.  
  4103. #define PDF_image_t_startpos_get(_swigobj) ((long ) _swigobj->startpos)
  4104. static PyObject *_wrap_PDF_image_startpos_get(PyObject *self, PyObject *args) {
  4105.     PyObject * _resultobj;
  4106.     long  _result;
  4107.     PDF_image * _arg0;
  4108.     char * _argc0 = 0;
  4109.  
  4110.     self = self;
  4111.     if(!PyArg_ParseTuple(args,"s:PDF_image_startpos_get",&_argc0)) 
  4112.         return NULL;
  4113.     if (_argc0) {
  4114.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
  4115.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_startpos_get. Expected _PDF_image_p.");
  4116.         return NULL;
  4117.         }
  4118.     }
  4119.     _result = (long )PDF_image_t_startpos_get(_arg0);
  4120.     _resultobj = Py_BuildValue("l",_result);
  4121.     return _resultobj;
  4122. }
  4123.  
  4124. #define PDF_image_t_dpi_set(_swigobj,_swigval) (_swigobj->dpi = _swigval,_swigval)
  4125. static PyObject *_wrap_PDF_image_dpi_set(PyObject *self, PyObject *args) {
  4126.     PyObject * _resultobj;
  4127.     float  _result;
  4128.     PDF_image * _arg0;
  4129.     float  _arg1;
  4130.     char * _argc0 = 0;
  4131.  
  4132.     self = self;
  4133.     if(!PyArg_ParseTuple(args,"sf:PDF_image_dpi_set",&_argc0,&_arg1)) 
  4134.         return NULL;
  4135.     if (_argc0) {
  4136.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
  4137.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_dpi_set. Expected _PDF_image_p.");
  4138.         return NULL;
  4139.         }
  4140.     }
  4141.     _result = (float )PDF_image_t_dpi_set(_arg0,_arg1);
  4142.     _resultobj = Py_BuildValue("f",_result);
  4143.     return _resultobj;
  4144. }
  4145.  
  4146. #define PDF_image_t_dpi_get(_swigobj) ((float ) _swigobj->dpi)
  4147. static PyObject *_wrap_PDF_image_dpi_get(PyObject *self, PyObject *args) {
  4148.     PyObject * _resultobj;
  4149.     float  _result;
  4150.     PDF_image * _arg0;
  4151.     char * _argc0 = 0;
  4152.  
  4153.     self = self;
  4154.     if(!PyArg_ParseTuple(args,"s:PDF_image_dpi_get",&_argc0)) 
  4155.         return NULL;
  4156.     if (_argc0) {
  4157.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
  4158.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_dpi_get. Expected _PDF_image_p.");
  4159.         return NULL;
  4160.         }
  4161.     }
  4162.     _result = (float )PDF_image_t_dpi_get(_arg0);
  4163.     _resultobj = Py_BuildValue("f",_result);
  4164.     return _resultobj;
  4165. }
  4166.  
  4167. #define PDF_image_t_Background_set(_swigobj,_swigval) (_swigobj->Background = _swigval,_swigval)
  4168. static PyObject *_wrap_PDF_image_Background_set(PyObject *self, PyObject *args) {
  4169.     PyObject * _resultobj;
  4170.     unsigned int  _result;
  4171.     PDF_image * _arg0;
  4172.     unsigned int  _arg1;
  4173.     char * _argc0 = 0;
  4174.  
  4175.     self = self;
  4176.     if(!PyArg_ParseTuple(args,"si:PDF_image_Background_set",&_argc0,&_arg1)) 
  4177.         return NULL;
  4178.     if (_argc0) {
  4179.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
  4180.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_Background_set. Expected _PDF_image_p.");
  4181.         return NULL;
  4182.         }
  4183.     }
  4184.     _result = (unsigned int )PDF_image_t_Background_set(_arg0,_arg1);
  4185.     _resultobj = Py_BuildValue("i",_result);
  4186.     return _resultobj;
  4187. }
  4188.  
  4189. #define PDF_image_t_Background_get(_swigobj) ((unsigned int ) _swigobj->Background)
  4190. static PyObject *_wrap_PDF_image_Background_get(PyObject *self, PyObject *args) {
  4191.     PyObject * _resultobj;
  4192.     unsigned int  _result;
  4193.     PDF_image * _arg0;
  4194.     char * _argc0 = 0;
  4195.  
  4196.     self = self;
  4197.     if(!PyArg_ParseTuple(args,"s:PDF_image_Background_get",&_argc0)) 
  4198.         return NULL;
  4199.     if (_argc0) {
  4200.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
  4201.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_Background_get. Expected _PDF_image_p.");
  4202.         return NULL;
  4203.         }
  4204.     }
  4205.     _result = (unsigned int )PDF_image_t_Background_get(_arg0);
  4206.     _resultobj = Py_BuildValue("i",_result);
  4207.     return _resultobj;
  4208. }
  4209.  
  4210. #define PDF_image_t_transparent_set(_swigobj,_swigval) (_swigobj->transparent = _swigval,_swigval)
  4211. static PyObject *_wrap_PDF_image_transparent_set(PyObject *self, PyObject *args) {
  4212.     PyObject * _resultobj;
  4213.     int  _result;
  4214.     PDF_image * _arg0;
  4215.     int  _arg1;
  4216.     char * _argc0 = 0;
  4217.  
  4218.     self = self;
  4219.     if(!PyArg_ParseTuple(args,"si:PDF_image_transparent_set",&_argc0,&_arg1)) 
  4220.         return NULL;
  4221.     if (_argc0) {
  4222.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
  4223.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_transparent_set. Expected _PDF_image_p.");
  4224.         return NULL;
  4225.         }
  4226.     }
  4227.     _result = (int )PDF_image_t_transparent_set(_arg0,_arg1);
  4228.     _resultobj = Py_BuildValue("i",_result);
  4229.     return _resultobj;
  4230. }
  4231.  
  4232. #define PDF_image_t_transparent_get(_swigobj) ((int ) _swigobj->transparent)
  4233. static PyObject *_wrap_PDF_image_transparent_get(PyObject *self, PyObject *args) {
  4234.     PyObject * _resultobj;
  4235.     int  _result;
  4236.     PDF_image * _arg0;
  4237.     char * _argc0 = 0;
  4238.  
  4239.     self = self;
  4240.     if(!PyArg_ParseTuple(args,"s:PDF_image_transparent_get",&_argc0)) 
  4241.         return NULL;
  4242.     if (_argc0) {
  4243.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
  4244.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_transparent_get. Expected _PDF_image_p.");
  4245.         return NULL;
  4246.         }
  4247.     }
  4248.     _result = (int )PDF_image_t_transparent_get(_arg0);
  4249.     _resultobj = Py_BuildValue("i",_result);
  4250.     return _resultobj;
  4251. }
  4252.  
  4253. #define PDF_image_t_delayTime_set(_swigobj,_swigval) (_swigobj->delayTime = _swigval,_swigval)
  4254. static PyObject *_wrap_PDF_image_delayTime_set(PyObject *self, PyObject *args) {
  4255.     PyObject * _resultobj;
  4256.     int  _result;
  4257.     PDF_image * _arg0;
  4258.     int  _arg1;
  4259.     char * _argc0 = 0;
  4260.  
  4261.     self = self;
  4262.     if(!PyArg_ParseTuple(args,"si:PDF_image_delayTime_set",&_argc0,&_arg1)) 
  4263.         return NULL;
  4264.     if (_argc0) {
  4265.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
  4266.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_delayTime_set. Expected _PDF_image_p.");
  4267.         return NULL;
  4268.         }
  4269.     }
  4270.     _result = (int )PDF_image_t_delayTime_set(_arg0,_arg1);
  4271.     _resultobj = Py_BuildValue("i",_result);
  4272.     return _resultobj;
  4273. }
  4274.  
  4275. #define PDF_image_t_delayTime_get(_swigobj) ((int ) _swigobj->delayTime)
  4276. static PyObject *_wrap_PDF_image_delayTime_get(PyObject *self, PyObject *args) {
  4277.     PyObject * _resultobj;
  4278.     int  _result;
  4279.     PDF_image * _arg0;
  4280.     char * _argc0 = 0;
  4281.  
  4282.     self = self;
  4283.     if(!PyArg_ParseTuple(args,"s:PDF_image_delayTime_get",&_argc0)) 
  4284.         return NULL;
  4285.     if (_argc0) {
  4286.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
  4287.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_delayTime_get. Expected _PDF_image_p.");
  4288.         return NULL;
  4289.         }
  4290.     }
  4291.     _result = (int )PDF_image_t_delayTime_get(_arg0);
  4292.     _resultobj = Py_BuildValue("i",_result);
  4293.     return _resultobj;
  4294. }
  4295.  
  4296. #define PDF_image_t_inputFlag_set(_swigobj,_swigval) (_swigobj->inputFlag = _swigval,_swigval)
  4297. static PyObject *_wrap_PDF_image_inputFlag_set(PyObject *self, PyObject *args) {
  4298.     PyObject * _resultobj;
  4299.     int  _result;
  4300.     PDF_image * _arg0;
  4301.     int  _arg1;
  4302.     char * _argc0 = 0;
  4303.  
  4304.     self = self;
  4305.     if(!PyArg_ParseTuple(args,"si:PDF_image_inputFlag_set",&_argc0,&_arg1)) 
  4306.         return NULL;
  4307.     if (_argc0) {
  4308.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
  4309.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_inputFlag_set. Expected _PDF_image_p.");
  4310.         return NULL;
  4311.         }
  4312.     }
  4313.     _result = (int )PDF_image_t_inputFlag_set(_arg0,_arg1);
  4314.     _resultobj = Py_BuildValue("i",_result);
  4315.     return _resultobj;
  4316. }
  4317.  
  4318. #define PDF_image_t_inputFlag_get(_swigobj) ((int ) _swigobj->inputFlag)
  4319. static PyObject *_wrap_PDF_image_inputFlag_get(PyObject *self, PyObject *args) {
  4320.     PyObject * _resultobj;
  4321.     int  _result;
  4322.     PDF_image * _arg0;
  4323.     char * _argc0 = 0;
  4324.  
  4325.     self = self;
  4326.     if(!PyArg_ParseTuple(args,"s:PDF_image_inputFlag_get",&_argc0)) 
  4327.         return NULL;
  4328.     if (_argc0) {
  4329.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
  4330.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_inputFlag_get. Expected _PDF_image_p.");
  4331.         return NULL;
  4332.         }
  4333.     }
  4334.     _result = (int )PDF_image_t_inputFlag_get(_arg0);
  4335.     _resultobj = Py_BuildValue("i",_result);
  4336.     return _resultobj;
  4337. }
  4338.  
  4339. #define PDF_image_t_disposal_set(_swigobj,_swigval) (_swigobj->disposal = _swigval,_swigval)
  4340. static PyObject *_wrap_PDF_image_disposal_set(PyObject *self, PyObject *args) {
  4341.     PyObject * _resultobj;
  4342.     int  _result;
  4343.     PDF_image * _arg0;
  4344.     int  _arg1;
  4345.     char * _argc0 = 0;
  4346.  
  4347.     self = self;
  4348.     if(!PyArg_ParseTuple(args,"si:PDF_image_disposal_set",&_argc0,&_arg1)) 
  4349.         return NULL;
  4350.     if (_argc0) {
  4351.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
  4352.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_disposal_set. Expected _PDF_image_p.");
  4353.         return NULL;
  4354.         }
  4355.     }
  4356.     _result = (int )PDF_image_t_disposal_set(_arg0,_arg1);
  4357.     _resultobj = Py_BuildValue("i",_result);
  4358.     return _resultobj;
  4359. }
  4360.  
  4361. #define PDF_image_t_disposal_get(_swigobj) ((int ) _swigobj->disposal)
  4362. static PyObject *_wrap_PDF_image_disposal_get(PyObject *self, PyObject *args) {
  4363.     PyObject * _resultobj;
  4364.     int  _result;
  4365.     PDF_image * _arg0;
  4366.     char * _argc0 = 0;
  4367.  
  4368.     self = self;
  4369.     if(!PyArg_ParseTuple(args,"s:PDF_image_disposal_get",&_argc0)) 
  4370.         return NULL;
  4371.     if (_argc0) {
  4372.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
  4373.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_disposal_get. Expected _PDF_image_p.");
  4374.         return NULL;
  4375.         }
  4376.     }
  4377.     _result = (int )PDF_image_t_disposal_get(_arg0);
  4378.     _resultobj = Py_BuildValue("i",_result);
  4379.     return _resultobj;
  4380. }
  4381.  
  4382. #define PDF_image_t_useGlobalColormap_set(_swigobj,_swigval) (_swigobj->useGlobalColormap = _swigval,_swigval)
  4383. static PyObject *_wrap_PDF_image_useGlobalColormap_set(PyObject *self, PyObject *args) {
  4384.     PyObject * _resultobj;
  4385.     int  _result;
  4386.     PDF_image * _arg0;
  4387.     int  _arg1;
  4388.     char * _argc0 = 0;
  4389.  
  4390.     self = self;
  4391.     if(!PyArg_ParseTuple(args,"si:PDF_image_useGlobalColormap_set",&_argc0,&_arg1)) 
  4392.         return NULL;
  4393.     if (_argc0) {
  4394.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
  4395.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_useGlobalColormap_set. Expected _PDF_image_p.");
  4396.         return NULL;
  4397.         }
  4398.     }
  4399.     _result = (int )PDF_image_t_useGlobalColormap_set(_arg0,_arg1);
  4400.     _resultobj = Py_BuildValue("i",_result);
  4401.     return _resultobj;
  4402. }
  4403.  
  4404. #define PDF_image_t_useGlobalColormap_get(_swigobj) ((int ) _swigobj->useGlobalColormap)
  4405. static PyObject *_wrap_PDF_image_useGlobalColormap_get(PyObject *self, PyObject *args) {
  4406.     PyObject * _resultobj;
  4407.     int  _result;
  4408.     PDF_image * _arg0;
  4409.     char * _argc0 = 0;
  4410.  
  4411.     self = self;
  4412.     if(!PyArg_ParseTuple(args,"s:PDF_image_useGlobalColormap_get",&_argc0)) 
  4413.         return NULL;
  4414.     if (_argc0) {
  4415.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
  4416.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_useGlobalColormap_get. Expected _PDF_image_p.");
  4417.         return NULL;
  4418.         }
  4419.     }
  4420.     _result = (int )PDF_image_t_useGlobalColormap_get(_arg0);
  4421.     _resultobj = Py_BuildValue("i",_result);
  4422.     return _resultobj;
  4423. }
  4424.  
  4425. #define PDF_image_t_bitPixel_set(_swigobj,_swigval) (_swigobj->bitPixel = _swigval,_swigval)
  4426. static PyObject *_wrap_PDF_image_bitPixel_set(PyObject *self, PyObject *args) {
  4427.     PyObject * _resultobj;
  4428.     unsigned int  _result;
  4429.     PDF_image * _arg0;
  4430.     unsigned int  _arg1;
  4431.     char * _argc0 = 0;
  4432.  
  4433.     self = self;
  4434.     if(!PyArg_ParseTuple(args,"si:PDF_image_bitPixel_set",&_argc0,&_arg1)) 
  4435.         return NULL;
  4436.     if (_argc0) {
  4437.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
  4438.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_bitPixel_set. Expected _PDF_image_p.");
  4439.         return NULL;
  4440.         }
  4441.     }
  4442.     _result = (unsigned int )PDF_image_t_bitPixel_set(_arg0,_arg1);
  4443.     _resultobj = Py_BuildValue("i",_result);
  4444.     return _resultobj;
  4445. }
  4446.  
  4447. #define PDF_image_t_bitPixel_get(_swigobj) ((unsigned int ) _swigobj->bitPixel)
  4448. static PyObject *_wrap_PDF_image_bitPixel_get(PyObject *self, PyObject *args) {
  4449.     PyObject * _resultobj;
  4450.     unsigned int  _result;
  4451.     PDF_image * _arg0;
  4452.     char * _argc0 = 0;
  4453.  
  4454.     self = self;
  4455.     if(!PyArg_ParseTuple(args,"s:PDF_image_bitPixel_get",&_argc0)) 
  4456.         return NULL;
  4457.     if (_argc0) {
  4458.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
  4459.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_bitPixel_get. Expected _PDF_image_p.");
  4460.         return NULL;
  4461.         }
  4462.     }
  4463.     _result = (unsigned int )PDF_image_t_bitPixel_get(_arg0);
  4464.     _resultobj = Py_BuildValue("i",_result);
  4465.     return _resultobj;
  4466. }
  4467.  
  4468. #define PDF_image_t_interlace_set(_swigobj,_swigval) (_swigobj->interlace = _swigval,_swigval)
  4469. static PyObject *_wrap_PDF_image_interlace_set(PyObject *self, PyObject *args) {
  4470.     PyObject * _resultobj;
  4471.     bool  _result;
  4472.     PDF_image * _arg0;
  4473.     bool  _arg1;
  4474.     char * _argc0 = 0;
  4475.     int tempbool1;
  4476.  
  4477.     self = self;
  4478.     if(!PyArg_ParseTuple(args,"si:PDF_image_interlace_set",&_argc0,&tempbool1)) 
  4479.         return NULL;
  4480.     if (_argc0) {
  4481.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
  4482.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_interlace_set. Expected _PDF_image_p.");
  4483.         return NULL;
  4484.         }
  4485.     }
  4486.     _arg1 = (bool ) tempbool1;
  4487.     _result = (bool )PDF_image_t_interlace_set(_arg0,_arg1);
  4488.     _resultobj = Py_BuildValue("i",_result);
  4489.     return _resultobj;
  4490. }
  4491.  
  4492. #define PDF_image_t_interlace_get(_swigobj) ((bool ) _swigobj->interlace)
  4493. static PyObject *_wrap_PDF_image_interlace_get(PyObject *self, PyObject *args) {
  4494.     PyObject * _resultobj;
  4495.     bool  _result;
  4496.     PDF_image * _arg0;
  4497.     char * _argc0 = 0;
  4498.  
  4499.     self = self;
  4500.     if(!PyArg_ParseTuple(args,"s:PDF_image_interlace_get",&_argc0)) 
  4501.         return NULL;
  4502.     if (_argc0) {
  4503.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
  4504.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_interlace_get. Expected _PDF_image_p.");
  4505.         return NULL;
  4506.         }
  4507.     }
  4508.     _result = (bool )PDF_image_t_interlace_get(_arg0);
  4509.     _resultobj = Py_BuildValue("i",_result);
  4510.     return _resultobj;
  4511. }
  4512.  
  4513. #define PDF_image_t_imageno_set(_swigobj,_swigval) (_swigobj->imageno = _swigval,_swigval)
  4514. static PyObject *_wrap_PDF_image_imageno_set(PyObject *self, PyObject *args) {
  4515.     PyObject * _resultobj;
  4516.     int  _result;
  4517.     PDF_image * _arg0;
  4518.     int  _arg1;
  4519.     char * _argc0 = 0;
  4520.  
  4521.     self = self;
  4522.     if(!PyArg_ParseTuple(args,"si:PDF_image_imageno_set",&_argc0,&_arg1)) 
  4523.         return NULL;
  4524.     if (_argc0) {
  4525.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
  4526.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_imageno_set. Expected _PDF_image_p.");
  4527.         return NULL;
  4528.         }
  4529.     }
  4530.     _result = (int )PDF_image_t_imageno_set(_arg0,_arg1);
  4531.     _resultobj = Py_BuildValue("i",_result);
  4532.     return _resultobj;
  4533. }
  4534.  
  4535. #define PDF_image_t_imageno_get(_swigobj) ((int ) _swigobj->imageno)
  4536. static PyObject *_wrap_PDF_image_imageno_get(PyObject *self, PyObject *args) {
  4537.     PyObject * _resultobj;
  4538.     int  _result;
  4539.     PDF_image * _arg0;
  4540.     char * _argc0 = 0;
  4541.  
  4542.     self = self;
  4543.     if(!PyArg_ParseTuple(args,"s:PDF_image_imageno_get",&_argc0)) 
  4544.         return NULL;
  4545.     if (_argc0) {
  4546.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
  4547.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_imageno_get. Expected _PDF_image_p.");
  4548.         return NULL;
  4549.         }
  4550.     }
  4551.     _result = (int )PDF_image_t_imageno_get(_arg0);
  4552.     _resultobj = Py_BuildValue("i",_result);
  4553.     return _resultobj;
  4554. }
  4555.  
  4556. #define PDF_image_t_no_set(_swigobj,_swigval) (_swigobj->no = _swigval,_swigval)
  4557. static PyObject *_wrap_PDF_image_no_set(PyObject *self, PyObject *args) {
  4558.     PyObject * _resultobj;
  4559.     int  _result;
  4560.     PDF_image * _arg0;
  4561.     int  _arg1;
  4562.     char * _argc0 = 0;
  4563.  
  4564.     self = self;
  4565.     if(!PyArg_ParseTuple(args,"si:PDF_image_no_set",&_argc0,&_arg1)) 
  4566.         return NULL;
  4567.     if (_argc0) {
  4568.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
  4569.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_no_set. Expected _PDF_image_p.");
  4570.         return NULL;
  4571.         }
  4572.     }
  4573.     _result = (int )PDF_image_t_no_set(_arg0,_arg1);
  4574.     _resultobj = Py_BuildValue("i",_result);
  4575.     return _resultobj;
  4576. }
  4577.  
  4578. #define PDF_image_t_no_get(_swigobj) ((int ) _swigobj->no)
  4579. static PyObject *_wrap_PDF_image_no_get(PyObject *self, PyObject *args) {
  4580.     PyObject * _resultobj;
  4581.     int  _result;
  4582.     PDF_image * _arg0;
  4583.     char * _argc0 = 0;
  4584.  
  4585.     self = self;
  4586.     if(!PyArg_ParseTuple(args,"s:PDF_image_no_get",&_argc0)) 
  4587.         return NULL;
  4588.     if (_argc0) {
  4589.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
  4590.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_no_get. Expected _PDF_image_p.");
  4591.         return NULL;
  4592.         }
  4593.     }
  4594.     _result = (int )PDF_image_t_no_get(_arg0);
  4595.     _resultobj = Py_BuildValue("i",_result);
  4596.     return _resultobj;
  4597. }
  4598.  
  4599. #define PDF_image_t_src_set(_swigobj,_swigval) (_swigobj->src = *(_swigval),_swigval)
  4600. static PyObject *_wrap_PDF_image_src_set(PyObject *self, PyObject *args) {
  4601.     PyObject * _resultobj;
  4602.     PDF_data_source * _result;
  4603.     PDF_image * _arg0;
  4604.     PDF_data_source * _arg1;
  4605.     char * _argc0 = 0;
  4606.     char * _argc1 = 0;
  4607.     char _ptemp[128];
  4608.  
  4609.     self = self;
  4610.     if(!PyArg_ParseTuple(args,"ss:PDF_image_src_set",&_argc0,&_argc1)) 
  4611.         return NULL;
  4612.     if (_argc0) {
  4613.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
  4614.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_src_set. Expected _PDF_image_p.");
  4615.         return NULL;
  4616.         }
  4617.     }
  4618.     if (_argc1) {
  4619.         if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_PDF_data_source_p")) {
  4620.             PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of PDF_image_src_set. Expected _PDF_data_source_p.");
  4621.         return NULL;
  4622.         }
  4623.     }
  4624.     _result = (PDF_data_source *)PDF_image_t_src_set(_arg0,_arg1);
  4625.     SWIG_MakePtr(_ptemp, (char *) _result,"_PDF_data_source_p");
  4626.     _resultobj = Py_BuildValue("s",_ptemp);
  4627.     return _resultobj;
  4628. }
  4629.  
  4630. #define PDF_image_t_src_get(_swigobj) (&_swigobj->src)
  4631. static PyObject *_wrap_PDF_image_src_get(PyObject *self, PyObject *args) {
  4632.     PyObject * _resultobj;
  4633.     PDF_data_source * _result;
  4634.     PDF_image * _arg0;
  4635.     char * _argc0 = 0;
  4636.     char _ptemp[128];
  4637.  
  4638.     self = self;
  4639.     if(!PyArg_ParseTuple(args,"s:PDF_image_src_get",&_argc0)) 
  4640.         return NULL;
  4641.     if (_argc0) {
  4642.         if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_PDF_image_p")) {
  4643.             PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of PDF_image_src_get. Expected _PDF_image_p.");
  4644.         return NULL;
  4645.         }
  4646.     }
  4647.     _result = (PDF_data_source *)PDF_image_t_src_get(_arg0);
  4648.     SWIG_MakePtr(_ptemp, (char *) _result,"_PDF_data_source_p");
  4649.     _resultobj = Py_BuildValue("s",_ptemp);
  4650.     return _resultobj;
  4651. }
  4652.  
  4653. static PyMethodDef pdflibMethods[] = {
  4654.      { "PDF_image_src_get", _wrap_PDF_image_src_get, 1 },
  4655.      { "PDF_image_src_set", _wrap_PDF_image_src_set, 1 },
  4656.      { "PDF_image_no_get", _wrap_PDF_image_no_get, 1 },
  4657.      { "PDF_image_no_set", _wrap_PDF_image_no_set, 1 },
  4658.      { "PDF_image_imageno_get", _wrap_PDF_image_imageno_get, 1 },
  4659.      { "PDF_image_imageno_set", _wrap_PDF_image_imageno_set, 1 },
  4660.      { "PDF_image_interlace_get", _wrap_PDF_image_interlace_get, 1 },
  4661.      { "PDF_image_interlace_set", _wrap_PDF_image_interlace_set, 1 },
  4662.      { "PDF_image_bitPixel_get", _wrap_PDF_image_bitPixel_get, 1 },
  4663.      { "PDF_image_bitPixel_set", _wrap_PDF_image_bitPixel_set, 1 },
  4664.      { "PDF_image_useGlobalColormap_get", _wrap_PDF_image_useGlobalColormap_get, 1 },
  4665.      { "PDF_image_useGlobalColormap_set", _wrap_PDF_image_useGlobalColormap_set, 1 },
  4666.      { "PDF_image_disposal_get", _wrap_PDF_image_disposal_get, 1 },
  4667.      { "PDF_image_disposal_set", _wrap_PDF_image_disposal_set, 1 },
  4668.      { "PDF_image_inputFlag_get", _wrap_PDF_image_inputFlag_get, 1 },
  4669.      { "PDF_image_inputFlag_set", _wrap_PDF_image_inputFlag_set, 1 },
  4670.      { "PDF_image_delayTime_get", _wrap_PDF_image_delayTime_get, 1 },
  4671.      { "PDF_image_delayTime_set", _wrap_PDF_image_delayTime_set, 1 },
  4672.      { "PDF_image_transparent_get", _wrap_PDF_image_transparent_get, 1 },
  4673.      { "PDF_image_transparent_set", _wrap_PDF_image_transparent_set, 1 },
  4674.      { "PDF_image_Background_get", _wrap_PDF_image_Background_get, 1 },
  4675.      { "PDF_image_Background_set", _wrap_PDF_image_Background_set, 1 },
  4676.      { "PDF_image_dpi_get", _wrap_PDF_image_dpi_get, 1 },
  4677.      { "PDF_image_dpi_set", _wrap_PDF_image_dpi_set, 1 },
  4678.      { "PDF_image_startpos_get", _wrap_PDF_image_startpos_get, 1 },
  4679.      { "PDF_image_startpos_set", _wrap_PDF_image_startpos_set, 1 },
  4680.      { "PDF_image_adobe_get", _wrap_PDF_image_adobe_get, 1 },
  4681.      { "PDF_image_adobe_set", _wrap_PDF_image_adobe_set, 1 },
  4682.      { "PDF_image_colormap_get", _wrap_PDF_image_colormap_get, 1 },
  4683.      { "PDF_image_BitPixel_get", _wrap_PDF_image_BitPixel_get, 1 },
  4684.      { "PDF_image_BitPixel_set", _wrap_PDF_image_BitPixel_set, 1 },
  4685.      { "PDF_image_indexed_get", _wrap_PDF_image_indexed_get, 1 },
  4686.      { "PDF_image_indexed_set", _wrap_PDF_image_indexed_set, 1 },
  4687.      { "PDF_image_colorspace_get", _wrap_PDF_image_colorspace_get, 1 },
  4688.      { "PDF_image_colorspace_set", _wrap_PDF_image_colorspace_set, 1 },
  4689.      { "PDF_image_compression_get", _wrap_PDF_image_compression_get, 1 },
  4690.      { "PDF_image_compression_set", _wrap_PDF_image_compression_set, 1 },
  4691.      { "PDF_image_components_get", _wrap_PDF_image_components_get, 1 },
  4692.      { "PDF_image_components_set", _wrap_PDF_image_components_set, 1 },
  4693.      { "PDF_image_bpc_get", _wrap_PDF_image_bpc_get, 1 },
  4694.      { "PDF_image_bpc_set", _wrap_PDF_image_bpc_set, 1 },
  4695.      { "PDF_image_height_get", _wrap_PDF_image_height_get, 1 },
  4696.      { "PDF_image_height_set", _wrap_PDF_image_height_set, 1 },
  4697.      { "PDF_image_width_get", _wrap_PDF_image_width_get, 1 },
  4698.      { "PDF_image_width_set", _wrap_PDF_image_width_set, 1 },
  4699.      { "PDF_image_filename_get", _wrap_PDF_image_filename_get, 1 },
  4700.      { "PDF_image_filename_set", _wrap_PDF_image_filename_set, 1 },
  4701.      { "PDF_image_fp_get", _wrap_PDF_image_fp_get, 1 },
  4702.      { "PDF_image_fp_set", _wrap_PDF_image_fp_set, 1 },
  4703.      { "PDF_data_source_s_private_data_get", _wrap_PDF_data_source_s_private_data_get, 1 },
  4704.      { "PDF_data_source_s_private_data_set", _wrap_PDF_data_source_s_private_data_set, 1 },
  4705.      { "PDF_data_source_s_buffer_length_get", _wrap_PDF_data_source_s_buffer_length_get, 1 },
  4706.      { "PDF_data_source_s_buffer_length_set", _wrap_PDF_data_source_s_buffer_length_set, 1 },
  4707.      { "PDF_data_source_s_buffer_start_get", _wrap_PDF_data_source_s_buffer_start_get, 1 },
  4708.      { "PDF_data_source_s_buffer_start_set", _wrap_PDF_data_source_s_buffer_start_set, 1 },
  4709.      { "PDF_data_source_s_bytes_available_get", _wrap_PDF_data_source_s_bytes_available_get, 1 },
  4710.      { "PDF_data_source_s_bytes_available_set", _wrap_PDF_data_source_s_bytes_available_set, 1 },
  4711.      { "PDF_data_source_s_next_byte_get", _wrap_PDF_data_source_s_next_byte_get, 1 },
  4712.      { "PDF_data_source_s_next_byte_set", _wrap_PDF_data_source_s_next_byte_set, 1 },
  4713.      { "PDF_matrix_f_get", _wrap_PDF_matrix_f_get, 1 },
  4714.      { "PDF_matrix_f_set", _wrap_PDF_matrix_f_set, 1 },
  4715.      { "PDF_matrix_e_get", _wrap_PDF_matrix_e_get, 1 },
  4716.      { "PDF_matrix_e_set", _wrap_PDF_matrix_e_set, 1 },
  4717.      { "PDF_matrix_d_get", _wrap_PDF_matrix_d_get, 1 },
  4718.      { "PDF_matrix_d_set", _wrap_PDF_matrix_d_set, 1 },
  4719.      { "PDF_matrix_c_get", _wrap_PDF_matrix_c_get, 1 },
  4720.      { "PDF_matrix_c_set", _wrap_PDF_matrix_c_set, 1 },
  4721.      { "PDF_matrix_b_get", _wrap_PDF_matrix_b_get, 1 },
  4722.      { "PDF_matrix_b_set", _wrap_PDF_matrix_b_set, 1 },
  4723.      { "PDF_matrix_a_get", _wrap_PDF_matrix_a_get, 1 },
  4724.      { "PDF_matrix_a_set", _wrap_PDF_matrix_a_set, 1 },
  4725.      { "PDF_info_fontpath_get", _wrap_PDF_info_fontpath_get, 1 },
  4726.      { "PDF_info_fontpath_set", _wrap_PDF_info_fontpath_set, 1 },
  4727.      { "PDF_info_Author_get", _wrap_PDF_info_Author_get, 1 },
  4728.      { "PDF_info_Author_set", _wrap_PDF_info_Author_set, 1 },
  4729.      { "PDF_info_Creator_get", _wrap_PDF_info_Creator_get, 1 },
  4730.      { "PDF_info_Creator_set", _wrap_PDF_info_Creator_set, 1 },
  4731.      { "PDF_info_CreationDate_get", _wrap_PDF_info_CreationDate_get, 1 },
  4732.      { "PDF_info_CreationDate_set", _wrap_PDF_info_CreationDate_set, 1 },
  4733.      { "PDF_info_Title_get", _wrap_PDF_info_Title_get, 1 },
  4734.      { "PDF_info_Title_set", _wrap_PDF_info_Title_set, 1 },
  4735.      { "PDF_info_ModDate_get", _wrap_PDF_info_ModDate_get, 1 },
  4736.      { "PDF_info_ModDate_set", _wrap_PDF_info_ModDate_set, 1 },
  4737.      { "PDF_info_Subject_get", _wrap_PDF_info_Subject_get, 1 },
  4738.      { "PDF_info_Subject_set", _wrap_PDF_info_Subject_set, 1 },
  4739.      { "PDF_info_Keywords_get", _wrap_PDF_info_Keywords_get, 1 },
  4740.      { "PDF_info_Keywords_set", _wrap_PDF_info_Keywords_set, 1 },
  4741.      { "PDF_info_required_compatibility_get", _wrap_PDF_info_required_compatibility_get, 1 },
  4742.      { "PDF_info_required_compatibility_set", _wrap_PDF_info_required_compatibility_set, 1 },
  4743.      { "PDF_info_binary_mode_get", _wrap_PDF_info_binary_mode_get, 1 },
  4744.      { "PDF_info_binary_mode_set", _wrap_PDF_info_binary_mode_set, 1 },
  4745.      { "PDF_pagesize_height_get", _wrap_PDF_pagesize_height_get, 1 },
  4746.      { "PDF_pagesize_height_set", _wrap_PDF_pagesize_height_set, 1 },
  4747.      { "PDF_pagesize_width_get", _wrap_PDF_pagesize_width_get, 1 },
  4748.      { "PDF_pagesize_width_set", _wrap_PDF_pagesize_width_set, 1 },
  4749.      { "fclose", _wrap_fclose, 1 },
  4750.      { "fopen", _wrap_fopen, 1 },
  4751.      { "PDF_add_outline", _wrap_PDF_add_outline, 1 },
  4752.      { "PDF_stringwidth", _wrap_PDF_stringwidth, 1 },
  4753.      { "PDF_data_source_from_buf", _wrap_PDF_data_source_from_buf, 1 },
  4754.      { "PDF_close_GIF", _wrap_PDF_close_GIF, 1 },
  4755.      { "PDF_open_GIF", _wrap_PDF_open_GIF, 1 },
  4756.      { "PDF_close_TIFF", _wrap_PDF_close_TIFF, 1 },
  4757.      { "PDF_open_TIFF", _wrap_PDF_open_TIFF, 1 },
  4758.      { "PDF_close_JPEG", _wrap_PDF_close_JPEG, 1 },
  4759.      { "PDF_open_JPEG", _wrap_PDF_open_JPEG, 1 },
  4760.      { "PDF_close_image", _wrap_PDF_close_image, 1 },
  4761.      { "PDF_execute_image", _wrap_PDF_execute_image, 1 },
  4762.      { "PDF_put_image", _wrap_PDF_put_image, 1 },
  4763.      { "PDF_place_inline_image", _wrap_PDF_place_inline_image, 1 },
  4764.      { "PDF_place_image", _wrap_PDF_place_image, 1 },
  4765.      { "PDF_clip", _wrap_PDF_clip, 1 },
  4766.      { "PDF_endpath", _wrap_PDF_endpath, 1 },
  4767.      { "PDF_closepath_fill_stroke", _wrap_PDF_closepath_fill_stroke, 1 },
  4768.      { "PDF_fill_stroke", _wrap_PDF_fill_stroke, 1 },
  4769.      { "PDF_fill", _wrap_PDF_fill, 1 },
  4770.      { "PDF_closepath_stroke", _wrap_PDF_closepath_stroke, 1 },
  4771.      { "PDF_stroke", _wrap_PDF_stroke, 1 },
  4772.      { "PDF_closepath", _wrap_PDF_closepath, 1 },
  4773.      { "PDF_rect", _wrap_PDF_rect, 1 },
  4774.      { "PDF_arc", _wrap_PDF_arc, 1 },
  4775.      { "PDF_circle", _wrap_PDF_circle, 1 },
  4776.      { "PDF_curveto", _wrap_PDF_curveto, 1 },
  4777.      { "PDF_lineto", _wrap_PDF_lineto, 1 },
  4778.      { "PDF_moveto", _wrap_PDF_moveto, 1 },
  4779.      { "PDF_setrgbcolor", _wrap_PDF_setrgbcolor, 1 },
  4780.      { "PDF_setrgbcolor_stroke", _wrap_PDF_setrgbcolor_stroke, 1 },
  4781.      { "PDF_setrgbcolor_fill", _wrap_PDF_setrgbcolor_fill, 1 },
  4782.      { "PDF_setgray", _wrap_PDF_setgray, 1 },
  4783.      { "PDF_setgray_stroke", _wrap_PDF_setgray_stroke, 1 },
  4784.      { "PDF_setgray_fill", _wrap_PDF_setgray_fill, 1 },
  4785.      { "PDF_setlinewidth", _wrap_PDF_setlinewidth, 1 },
  4786.      { "PDF_setmiterlimit", _wrap_PDF_setmiterlimit, 1 },
  4787.      { "PDF_setlinecap", _wrap_PDF_setlinecap, 1 },
  4788.      { "PDF_setlinejoin", _wrap_PDF_setlinejoin, 1 },
  4789.      { "PDF_setflat", _wrap_PDF_setflat, 1 },
  4790.      { "PDF_setpolydash", _wrap_PDF_setpolydash, 1 },
  4791.      { "PDF_setdash", _wrap_PDF_setdash, 1 },
  4792.      { "PDF_rotate", _wrap_PDF_rotate, 1 },
  4793.      { "PDF_scale", _wrap_PDF_scale, 1 },
  4794.      { "PDF_translate", _wrap_PDF_translate, 1 },
  4795.      { "PDF_restore", _wrap_PDF_restore, 1 },
  4796.      { "PDF_save", _wrap_PDF_save, 1 },
  4797.      { "PDF_continue_text", _wrap_PDF_continue_text, 1 },
  4798.      { "PDF_set_word_spacing", _wrap_PDF_set_word_spacing, 1 },
  4799.      { "PDF_set_char_spacing", _wrap_PDF_set_char_spacing, 1 },
  4800.      { "PDF_set_text_pos", _wrap_PDF_set_text_pos, 1 },
  4801.      { "PDF_set_text_matrix", _wrap_PDF_set_text_matrix, 1 },
  4802.      { "PDF_set_text_rendering", _wrap_PDF_set_text_rendering, 1 },
  4803.      { "PDF_set_horiz_scaling", _wrap_PDF_set_horiz_scaling, 1 },
  4804.      { "PDF_set_text_rise", _wrap_PDF_set_text_rise, 1 },
  4805.      { "PDF_set_leading", _wrap_PDF_set_leading, 1 },
  4806.      { "PDF_set_font", _wrap_PDF_set_font, 1 },
  4807.      { "PDF_show_xy", _wrap_PDF_show_xy, 1 },
  4808.      { "PDF_show", _wrap_PDF_show, 1 },
  4809.      { "PDF_free", _wrap_PDF_free, 1 },
  4810.      { "PDF_malloc", _wrap_PDF_malloc, 1 },
  4811.      { "PDF_set_duration", _wrap_PDF_set_duration, 1 },
  4812.      { "PDF_set_transition", _wrap_PDF_set_transition, 1 },
  4813.      { "PDF_end_page", _wrap_PDF_end_page, 1 },
  4814.      { "PDF_begin_page", _wrap_PDF_begin_page, 1 },
  4815.      { "PDF_close", _wrap_PDF_close, 1 },
  4816.      { "PDF_open", _wrap_PDF_open, 1 },
  4817.      { "PDF_get_info", _wrap_PDF_get_info, 1 },
  4818.      { NULL, NULL }
  4819. };
  4820. static PyObject *SWIG_globals;
  4821. #ifdef __cplusplus
  4822. extern "C" 
  4823. #endif
  4824. SWIGEXPORT(void,initpdflib)() {
  4825.      PyObject *m, *d;
  4826.      SWIG_globals = SWIG_newvarlink();
  4827.      m = Py_InitModule("pdflib", pdflibMethods);
  4828.      d = PyModule_GetDict(m);
  4829.      PyDict_SetItemString(d,"PDFLIB_VERSION", PyString_FromString("PDFlib V0.6 (C) Thomas Merz 1997-98"));
  4830.      PyDict_SetItemString(d,"PDF_DEFAULT_FONT_PATH", PyString_FromString("./fonts"));
  4831.      PyDict_SetItemString(d,"false", PyInt_FromLong((long) 0));
  4832.      PyDict_SetItemString(d,"true", PyInt_FromLong((long) 1));
  4833.      PyDict_SetItemString(d,"PDF_INFO", PyInt_FromLong((long) 1));
  4834.      PyDict_SetItemString(d,"PDF_WARN", PyInt_FromLong((long) 2));
  4835.      PyDict_SetItemString(d,"PDF_FATAL", PyInt_FromLong((long) 3));
  4836.      PyDict_SetItemString(d,"PDF_INTERNAL", PyInt_FromLong((long) 4));
  4837.      PyDict_SetItemString(d,"PDF1_0", PyInt_FromLong((long) PDF1_0));
  4838.      PyDict_SetItemString(d,"PDF1_1", PyInt_FromLong((long) PDF1_1));
  4839.      PyDict_SetItemString(d,"PDF1_2", PyInt_FromLong((long) PDF1_2));
  4840.      PyDict_SetItemString(d,"builtin", PyInt_FromLong((long) builtin));
  4841.      PyDict_SetItemString(d,"pdfdoc", PyInt_FromLong((long) pdfdoc));
  4842.      PyDict_SetItemString(d,"macroman", PyInt_FromLong((long) macroman));
  4843.      PyDict_SetItemString(d,"macexpert", PyInt_FromLong((long) macexpert));
  4844.      PyDict_SetItemString(d,"winansi", PyInt_FromLong((long) winansi));
  4845.      PyDict_SetItemString(d,"encoding_count", PyInt_FromLong((long) encoding_count));
  4846.      PyDict_SetItemString(d,"none", PyInt_FromLong((long) none));
  4847.      PyDict_SetItemString(d,"lzw", PyInt_FromLong((long) lzw));
  4848.      PyDict_SetItemString(d,"runlength", PyInt_FromLong((long) runlength));
  4849.      PyDict_SetItemString(d,"ccitt", PyInt_FromLong((long) ccitt));
  4850.      PyDict_SetItemString(d,"dct", PyInt_FromLong((long) dct));
  4851.      PyDict_SetItemString(d,"flate", PyInt_FromLong((long) flate));
  4852.      PyDict_SetItemString(d,"compression_count", PyInt_FromLong((long) compression_count));
  4853.      PyDict_SetItemString(d,"trans_none", PyInt_FromLong((long) trans_none));
  4854.      PyDict_SetItemString(d,"trans_split", PyInt_FromLong((long) trans_split));
  4855.      PyDict_SetItemString(d,"trans_blinds", PyInt_FromLong((long) trans_blinds));
  4856.      PyDict_SetItemString(d,"trans_box", PyInt_FromLong((long) trans_box));
  4857.      PyDict_SetItemString(d,"trans_wipe", PyInt_FromLong((long) trans_wipe));
  4858.      PyDict_SetItemString(d,"trans_dissolve", PyInt_FromLong((long) trans_dissolve));
  4859.      PyDict_SetItemString(d,"trans_glitter", PyInt_FromLong((long) trans_glitter));
  4860.      PyDict_SetItemString(d,"trans_replace", PyInt_FromLong((long) trans_replace));
  4861.      PyDict_SetItemString(d,"transition_count", PyInt_FromLong((long) transition_count));
  4862.      PyDict_SetItemString(d,"DeviceGray", PyInt_FromLong((long) DeviceGray));
  4863.      PyDict_SetItemString(d,"DeviceRGB", PyInt_FromLong((long) DeviceRGB));
  4864.      PyDict_SetItemString(d,"DeviceCMYK", PyInt_FromLong((long) DeviceCMYK));
  4865.      PyDict_SetItemString(d,"CalGray", PyInt_FromLong((long) CalGray));
  4866.      PyDict_SetItemString(d,"CalRGB", PyInt_FromLong((long) CalRGB));
  4867.      PyDict_SetItemString(d,"Lab", PyInt_FromLong((long) Lab));
  4868.      PyDict_SetItemString(d,"Indexed", PyInt_FromLong((long) Indexed));
  4869.      PyDict_SetItemString(d,"Pattern", PyInt_FromLong((long) Pattern));
  4870.      PyDict_SetItemString(d,"Separation", PyInt_FromLong((long) Separation));
  4871.      PyDict_SetItemString(d,"colorspace_count", PyInt_FromLong((long) colorspace_count));
  4872.      PyDict_SetItemString(d,"cvar", SWIG_globals);
  4873.      SWIG_addvarlink(SWIG_globals,"a0",_wrap_a0_get, _wrap_a0_set);
  4874.      SWIG_addvarlink(SWIG_globals,"a1",_wrap_a1_get, _wrap_a1_set);
  4875.      SWIG_addvarlink(SWIG_globals,"a2",_wrap_a2_get, _wrap_a2_set);
  4876.      SWIG_addvarlink(SWIG_globals,"a3",_wrap_a3_get, _wrap_a3_set);
  4877.      SWIG_addvarlink(SWIG_globals,"a4",_wrap_a4_get, _wrap_a4_set);
  4878.      SWIG_addvarlink(SWIG_globals,"a5",_wrap_a5_get, _wrap_a5_set);
  4879.      SWIG_addvarlink(SWIG_globals,"a6",_wrap_a6_get, _wrap_a6_set);
  4880.      SWIG_addvarlink(SWIG_globals,"b5",_wrap_b5_get, _wrap_b5_set);
  4881.      SWIG_addvarlink(SWIG_globals,"letter",_wrap_letter_get, _wrap_letter_set);
  4882.      SWIG_addvarlink(SWIG_globals,"legal",_wrap_legal_get, _wrap_legal_set);
  4883.      SWIG_addvarlink(SWIG_globals,"ledger",_wrap_ledger_get, _wrap_ledger_set);
  4884.      SWIG_addvarlink(SWIG_globals,"p11x17",_wrap_p11x17_get, _wrap_p11x17_set);
  4885.      PyDict_SetItemString(d,"PDF_info_Producer", PyString_FromString("PDF_info::Producer"));
  4886. /*
  4887.  * These are the pointer type-equivalency mappings. 
  4888.  * (Used by the SWIG pointer type-checker).
  4889.  */
  4890.      SWIG_RegisterMapping("_signed_long","_long",0);
  4891.      SWIG_RegisterMapping("_struct_PDF_s","_PDF",0);
  4892.      SWIG_RegisterMapping("_struct_PDF_data_source_s","_PDF_data_source_s",0);
  4893.      SWIG_RegisterMapping("_struct_PDF_data_source_s","_PDF_data_source",0);
  4894.      SWIG_RegisterMapping("_byte","_unsigned_char",0);
  4895.      SWIG_RegisterMapping("_char_pp","_PDF_encodingvector",0);
  4896.      SWIG_RegisterMapping("_long","_unsigned_long",0);
  4897.      SWIG_RegisterMapping("_long","_signed_long",0);
  4898.      SWIG_RegisterMapping("_PDF","_struct_PDF_s",0);
  4899.      SWIG_RegisterMapping("_struct_PDF_image_t","_PDF_image",0);
  4900.      SWIG_RegisterMapping("_struct_PDF_image_t","_PDF_image_t",0);
  4901.      SWIG_RegisterMapping("_PDF_data_source","_struct_PDF_data_source_s",0);
  4902.      SWIG_RegisterMapping("_PDF_image","_struct_PDF_image_t",0);
  4903.      SWIG_RegisterMapping("_PDF_image","_PDF_image_t",0);
  4904.      SWIG_RegisterMapping("_unsigned_long","_long",0);
  4905.      SWIG_RegisterMapping("_pdf_colormap","_byte_p",0);
  4906.      SWIG_RegisterMapping("_PDF_encodingvector","_char_pp",0);
  4907.      SWIG_RegisterMapping("_signed_int","_int",0);
  4908.      SWIG_RegisterMapping("_unsigned_short","_short",0);
  4909.      SWIG_RegisterMapping("_signed_short","_short",0);
  4910.      SWIG_RegisterMapping("_unsigned_char","_byte",0);
  4911.      SWIG_RegisterMapping("_unsigned_int","_int",0);
  4912.      SWIG_RegisterMapping("_short","_unsigned_short",0);
  4913.      SWIG_RegisterMapping("_short","_signed_short",0);
  4914.      SWIG_RegisterMapping("_int","_unsigned_int",0);
  4915.      SWIG_RegisterMapping("_int","_signed_int",0);
  4916.      SWIG_RegisterMapping("_PDF_data_source_s","_struct_PDF_data_source_s",0);
  4917.      SWIG_RegisterMapping("_PDF_image_t","_PDF_image",0);
  4918.      SWIG_RegisterMapping("_PDF_image_t","_struct_PDF_image_t",0);
  4919.      SWIG_RegisterMapping("_byte_p","_pdf_colormap",0);
  4920. }
  4921.